From 1209283b51ee35360037db4a14a18d779a1824ab Mon Sep 17 00:00:00 2001 From: superpw <78134969+superpw@users.noreply.github.com> Date: Tue, 23 Feb 2021 17:10:09 +0800 Subject: [PATCH] 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. --- packages/react-components/src/styles/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-components/src/styles/index.ts b/packages/react-components/src/styles/index.ts index 701d871619..976c18b6d5 100644 --- a/packages/react-components/src/styles/index.ts +++ b/packages/react-components/src/styles/index.ts @@ -174,6 +174,7 @@ export default createGlobalStyle(({ theme, uiHighlight }: Pr .ui--Icon { background: transparent; + color: inherit; color: ${getHighlight(uiHighlight)}; } } @@ -202,7 +203,7 @@ export default createGlobalStyle(({ 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;