Skip to content

Commit

Permalink
feat(Checkbox): label color configrable
Browse files Browse the repository at this point in the history
  • Loading branch information
guanpu committed Jun 9, 2019
1 parent 63e4d0b commit da4a411
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/checkbox/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
}
}
}
#{$checkbox-prefix}-label {
color: $checkbox-disabled-label-color;
}
}

&:not(.disabled):hover,
Expand Down Expand Up @@ -162,6 +165,7 @@

#{$checkbox-prefix}-label {
font-size: $checkbox-font-size;
color: $checkbox-label-color;
vertical-align: middle;
margin: 0;
margin-left: $checkbox-margin-left;
Expand Down
6 changes: 6 additions & 0 deletions src/checkbox/scss/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ $checkbox-checked-hovered-border-color: $color-transparent !default;
/// @namespace statement/checked/icon
$checkbox-checked-circle-color: $color-white !default;
/// text
/// @namespace statement/normal/label
$checkbox-label-color: $color-text1-4 !default;
/// text
/// @namespace statement/disabled/label
$checkbox-disabled-label-color: $color-text1-4 !default;
/// text
/// @namespace statement/disabled/icon
$checkbox-disabled-circle-color: $color-text1-1 !default;
/// text
Expand Down

0 comments on commit da4a411

Please sign in to comment.