-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Allow styling of radio button backgrounds #5791
Conversation
fyi, build failure isn't from this change. Master is currently failing (https://travis-ci.org/ant-design/ant-design/builds/222804823) |
Rebase, please. |
Codecov Report
@@ Coverage Diff @@
## master #5791 +/- ##
==========================================
- Coverage 86.83% 86.81% -0.03%
==========================================
Files 183 183
Lines 4557 4557
Branches 1320 1318 -2
==========================================
- Hits 3957 3956 -1
- Misses 600 601 +1
Continue to review full report at Codecov.
|
done |
components/style/themes/default.less
Outdated
@@ -130,6 +130,10 @@ | |||
|
|||
@btn-group-border : @primary-7; | |||
|
|||
// Radio buttons | |||
@btn-radio-bg : @btn-default-bg; | |||
@btn-radio-color : @btn-default-color; |
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.
radio-button-bg
radio-button-color
Done |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
This fixes radio buttons to use
@btn-default-bg
as the background by default instead of@component-bg
. This was causing issues with our theme as radio buttons were using@btn-default-color
which was not compatible with our default@component-bg
.This also adds 2 variables which correspond to the
@btn-default-*
settings by default@btn-radio-bg
@btn-radio-color