-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BX-1002][BX-1005] Support keyboard navigation within swap settings / Support Flip Assets Selectable with Tab/Arrow #1023
Conversation
boxShadow={`0px 0px 1px 2px transparent`} | ||
activeBoxShadow={`0px 0px 2px 4px ${ | ||
accentColor || avatar?.color || '#268FFF' | ||
}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
original code was broken, added transparent box shadow because it behaves oddly without it.
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
Here's the packed extension for this build: |
What changed (plus any additional context for devs)
Added keyboard navigation to the swap settings screen. Made flip assets button selectable with the keyboard. Fixed the active state of our
Toggle
component. Made focused toggles generable interactive with the enter key.Screen recordings / screenshots
PoW: https://recordit.co/fQQeoVGy52
What to test
Make sure swap settings can be pulled up using keyboard nav, and that all settings can be selected via keyboard. Ensure the active state on the toggle behaves appropriately. Check that using the keyboard to flip swap assets works and behaves the same as clicking and pressing 'F'.