Skip to content
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

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

derHowie
Copy link
Member

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'.

Comment on lines +47 to +50
boxShadow={`0px 0px 1px 2px transparent`}
activeBoxShadow={`0px 0px 2px 4px ${
accentColor || avatar?.color || '#268FFF'
}`}
Copy link
Member Author

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.

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-751c7485f8f683f79c0f848b273bf3f1dfe8fa8d.zip

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-6abae4848f0a75f9300b1581b56b42cc600a5c9a.zip

@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Here's the packed extension for this build:
rainbowbx-d8620d7d6d73f8a9a7f8b7892d3437f18e7fa659.zip

@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Here's the packed extension for this build:
rainbowbx-d9e2dcba56b98e731b673dc5c7675b5b930f0c60.zip

@derHowie derHowie merged commit 5c12887 into master Oct 3, 2023
15 checks passed
@derHowie derHowie deleted the @chris/swap-settings-kb branch October 3, 2023 10:27
@github-actions
Copy link

github-actions bot commented Oct 3, 2023

Here's the packed extension for this build:
rainbowbx-5c12887702e843cdd6f42b4321d169d73e7f6a3b.zip

@BrodyHughes BrodyHughes mentioned this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants