Replies: 2 comments 1 reply
-
you can override these class to suit your needs. |
Beta Was this translation helpful? Give feedback.
-
@omqmo , @stygian-desolator From version 5, you don't need or shouldn't to overwrite the class ant-design/components/theme/interface/components.ts
So, if you go to https://github.com/ant-design/ant-design/tree/master/components/collapse/style/index.ts/ You will see the component's token is defined in the Interface:
Then you scroll down, you will see collapseHeaderPadding is getting the value from tokens
Those tokens are the Alias token
You can put it in JSON file and load it into ConfigureProvider either or using CssInJS or style object and pass it to style attribute of the Collapse Panel. |
Beta Was this translation helpful? Give feedback.
-
How to remove padding from class
.ant-collapse-header
collapse?I just need a collapse without icons and label. But I do not know how to remove padding.
Beta Was this translation helpful? Give feedback.
All reactions