"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
This commit is contained in:
Jhon 2021-01-24 10:05:03 -08:00 committed by GitHub
parent 311c151211
commit 81935050ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}
}
`
: ''};

View File

@ -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;
}
}