-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(flat-button): add inverted
tone
#1175
Conversation
@@ -43,6 +43,14 @@ export const component = ({ themes }) => ( | |||
icon={<InformationIcon />} | |||
/> | |||
</Spec> | |||
<Spec label="inverted"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Spec label="inverted"> | |
<ThemeProvider theme={themes.darkTheme}> | |
<Spec label="inverted"> | |
<ThemeProvider theme={customProperties> | |
<FlatButton | |
tone="inverted" | |
label="A label text" | |
onClick={() => {}} | |
icon={<InformationIcon />} | |
/> | |
<ThemeProvider> | |
</Spec> | |
</ThemeProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also use listPropsOfNestedChild
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now.
@@ -44,10 +45,20 @@ export const component = ({ themes }) => ( | |||
/> | |||
</Spec> | |||
<ThemeProvider theme={themes.darkTheme}> | |||
<Spec label="secondary"> | |||
<Spec label="inverted" listPropsOfNestedChild> | |||
<ThemeProvider theme={vars}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do this to "reset" the theme back to the original.
stupid bot |
3cf413e
to
6a55c14
Compare
inverted
tone to<FlatButton />
component. The use case for that is when<FlatButton />
is used in the white-on-dark (given default ui-kit theme is used, of course) sections of application.font-color-for-text-when-inverted
token