Skip to content

Make swap arrows accessible, make swaps advanced options accessible#9750

Merged
darkwing merged 2 commits intoMetaMask:developfrom
darkwing:swaps-a11y
Oct 30, 2020
Merged

Make swap arrows accessible, make swaps advanced options accessible#9750
darkwing merged 2 commits intoMetaMask:developfrom
darkwing:swaps-a11y

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

Explanation:

The ^v arrow functionality doesn't work by keyboard, nor does the advanced slippage option toggle. This PR fixes those issues.

Manual testing steps:

  • Tab through swaps screen, everything should be reachable via keyboard

Tabs

@darkwing darkwing requested a review from a team as a code owner October 28, 2020 20:21
@darkwing darkwing requested a review from whymarrh October 28, 2020 20:21
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

onFromSelect(selectedToToken)
}}
/>
><img src="/images/icons/swap2.svg" alt="" width="12" height="16" />
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danjm Can I simply add keys and values to app/_locales/en/messages.json? Then localizers will add them to other files?

Also, what label do we want to give this? I'm having trouble thinking of the proper phrase.

Copy link
Copy Markdown
Contributor

@danjm danjm Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I simply add keys and values to app/_locales/en/messages.json? Then localizers will add them to other files?

Yes!

Also, what label do we want to give this? I'm having trouble thinking of the proper phrase.

Something like "Switch from and to tokens"? Or "Switch source and destination tokens"?

Copy link
Copy Markdown
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I think there is one more incoming change. The label? I'll wait for that to approve.

@darkwing darkwing merged commit 77dc0ab into MetaMask:develop Oct 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants