Allow primary to be explicitly stated in color-related props
#8751
mwskwong
started this conversation in
Feature requests
Replies: 1 comment 1 reply
-
|
You can do that by defining |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Which exactly as it sound like. When set, e.g
color="primary", the corresponding components will make use of the primary palette, following theprimaryColordefined in the theme.This should allow components that don't use primary color by default, e.g.
Text, to support primary color as well. Currently for these components, the workaround is either hard code the color name, or make use ofprimaryColorfromuseMantineTheme().Beta Was this translation helpful? Give feedback.
All reactions