minor fix for button/sliders colors (#4715)

in table buttons will render if the theme color contains linear gradient
and sliders looks grey.

This commit make a minor fix for them.
This commit is contained in:
superpw 2021-02-23 17:10:09 +08:00 committed by GitHub
parent 75abaf3ba7
commit 1209283b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,7 @@ export default createGlobalStyle<Props & ThemeProps>(({ theme, uiHighlight }: Pr
.ui--Icon {
background: transparent;
color: inherit;
color: ${getHighlight(uiHighlight)};
}
}
@ -202,7 +203,7 @@ export default createGlobalStyle<Props & ThemeProps>(({ theme, uiHighlight }: Pr
.ui--Toggle.isChecked {
&:not(.isRadio) {
.ui--Toggle-Slider {
background-color: ${getHighlight(uiHighlight)} !important;
background: ${getHighlight(uiHighlight)} !important;
&:before {
border-color: ${getHighlight(uiHighlight)} !important;