Align overstaked on actions with red color (#3577)

This commit is contained in:
Jaco Greeff 2020-08-30 18:04:27 +02:00 committed by GitHub
parent 92bf48168c
commit ce084ccacc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ function ListNominees ({ nominating, stashId }: Props): React.ReactElement<Props
<>
{nomsOver && nomsOver.length !== 0 && (
<Expander
className='stakeOver'
help={t<string>('These validators are active but only the top {{max}} nominators by backing stake will be receiving rewards. The nominating stash is not one of those to be rewarded in the current era.', { replace: max })}
summary={t<string>('Oversubscribed nominations ({{count}})', { replace: { count: nomsOver.length } })}
>

View File

@ -347,4 +347,10 @@ export default React.memo(styled(Account)`
margin-right: 0.25rem;
vertical-align: inherit;
}
.ui--Expander.stakeOver {
.ui--Expander-summary {
color: darkred;
}
}
`);