1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Make MAX button accessible (#11322)

This commit is contained in:
David Walsh 2021-06-16 10:00:19 -05:00 committed by GitHub
parent ca7259246c
commit a08d927681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -801,6 +801,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #2f9ae0; color: #2f9ae0;
background: #fff;
&__disabled { &__disabled {
color: #b0d7f2; color: #b0d7f2;

View File

@ -62,7 +62,7 @@ export default class AmountMaxButton extends Component {
const { maxModeOn, buttonDataLoading, inError } = this.props; const { maxModeOn, buttonDataLoading, inError } = this.props;
return ( return (
<div <button
className="send-v2__amount-max" className="send-v2__amount-max"
onClick={buttonDataLoading || inError ? null : this.onMaxClick} onClick={buttonDataLoading || inError ? null : this.onMaxClick}
> >
@ -75,7 +75,7 @@ export default class AmountMaxButton extends Component {
> >
{this.context.t('max')} {this.context.t('max')}
</div> </div>
</div> </button>
); );
} }
} }