Skip to content

Swaps keyboard dropdown#9702

Merged
darkwing merged 4 commits intoMetaMask:developfrom
darkwing:swaps-keyboard-dropdown
Oct 26, 2020
Merged

Swaps keyboard dropdown#9702
darkwing merged 4 commits intoMetaMask:developfrom
darkwing:swaps-keyboard-dropdown

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

Explanation:

At present the dropdowns used in swaps are not accessible via keyboard. This PR makes it so that:

  • Users can tab to the dropdown, press Enter, and then press tab to get from item to item, then press Enter to select one
  • Pressing Escape closes the dropdown

Manual testing steps:

  • Open each dropdown via Enter key, press Tab to move from item to item
  • Press Enter to select items
  • Open each dropdown via Enter key, press Escape to close the dropdown

Would be good for @danjm to review as I'd like to ensure everything looks good on Linux.

Keyboard

@darkwing darkwing requested review from brad-decker and danjm October 23, 2020 19:35
@darkwing darkwing requested a review from a team as a code owner October 23, 2020 19:35
@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.

Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

LGTM, just one suggested update

@darkwing
Copy link
Copy Markdown
Contributor Author

This should be good to go.

Copy link
Copy Markdown
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@darkwing darkwing merged commit a111702 into MetaMask:develop Oct 26, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 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