1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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;
justify-content: center;
color: #2f9ae0;
background: #fff;
&__disabled {
color: #b0d7f2;

View File

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