-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add theme
prop support to Radio buttons
#1147
Add theme
prop support to Radio buttons
#1147
Conversation
|
Tip Once this PR is ready to go, add the This saves us a lot of money by not running the tests before we need them. |
a139285
to
8af8046
Compare
02acca3
to
4ebc345
Compare
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.
LGTM
textSupporting: palette.brand[800], | ||
}; | ||
|
||
export const transformOldProviderTheme = ( |
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.
Nice! This makes more sense to have this function here
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.
Will have to update the Inline error and legend once their PR is merged
a9bb529
into
release/source-react-components-themeing
What are you changing?
theme
prop and updated theme format, deprecating use of existing themes andThemeProvider
.Radio
andRadioGroup
components.transformOldProviderTheme
method that translates existing themes to the new format has been moved to thetheme
module so that it can be used by both components without having to duplicate the code.Additional information
Brand themed Radio groups currently have an incorrectly coloured label as the
Legend
component has not yet been updated withtheme
prop support.