From 81935050ec4fae533419332b0b7768f3f76e0c69 Mon Sep 17 00:00:00 2001 From: Jhon Date: Sun, 24 Jan 2021 10:05:03 -0800 Subject: [PATCH] "isolate opacity change to format balance error text" (#4484) * lighter read to make it more readable on dark mode * added missing themeprops ref * ran linter * undo opacity 1 on non red 'other stake' to keep the focus on the whle number' * ran linter * isolate opacity change to format balance error text --- packages/page-staking/src/index.tsx | 6 ++++++ packages/react-query/src/FormatBalance.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/page-staking/src/index.tsx b/packages/page-staking/src/index.tsx index 1bd4f988a7..ca59938b71 100644 --- a/packages/page-staking/src/index.tsx +++ b/packages/page-staking/src/index.tsx @@ -206,6 +206,12 @@ export default React.memo(styled(StakingApp)(({ theme }: ThemeProps) => ` ${theme.theme === 'dark' ? ` font-weight: bold; + .ui--FormatBalance-value { + + > .ui--FormatBalance-postfix { + opacity: 1; + } + } ` : ''}; diff --git a/packages/react-query/src/FormatBalance.tsx b/packages/react-query/src/FormatBalance.tsx index 7df1f30116..ac686dc60c 100644 --- a/packages/react-query/src/FormatBalance.tsx +++ b/packages/react-query/src/FormatBalance.tsx @@ -122,7 +122,7 @@ export default React.memo(styled(FormatBalance)(({ theme }: ThemeProps) => ` > .ui--FormatBalance-postfix { font-weight: ${theme.fontWeightLight}; - opacity: ${theme.theme === 'light' ? '0.7' : '1'}; + opacity: 0.7; vertical-align: baseline; } }