Replies: 3 comments 3 replies
-
Can you please provide the pertinent pieces of code or a CodeSandbox with an example of what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue and not using the sx prop, however when I apply the _css attribute to the Chakra button there is still no change. |
Beta Was this translation helpful? Give feedback.
-
Surprised this is in the discussion area instead of an issue, this problem extends to any other components that use Chakra's button under the hood like |
Beta Was this translation helpful? Give feedback.
-
I've defined a custom theme with text styles and button variants, but the font size for buttons is ignored unless added inline (this is not a workable solution).
I've tried adding textStyle: button, fontSize: '14px', fontSize: 'sm', 'font-size': '14px' both on the button theme definition and in the global styles constant. No matter what, the font size for button remains 16px, which I believe is Chakra-Ui's 'md' size. Aside from redefining all my font sizes to make 14px 'md', how can my font sizes be applied to my buttons?
Beta Was this translation helpful? Give feedback.
All reactions