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

561 focused elements- update focus style #767

Merged
merged 7 commits into from Aug 8, 2020
Merged

561 focused elements- update focus style #767

merged 7 commits into from Aug 8, 2020

Conversation

ghost
Copy link

@ghost ghost commented Aug 4, 2020

Fixes #561

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Preview:
Screen Shot 2020-08-04 at 4 05 52 PM

Hannah Livnat added 3 commits August 4, 2020 14:16
…, and plus sign, and checkbox. Currently not working on the checkboxes in the request type selection section
@ghost ghost requested a review from adamkendis August 4, 2020 23:15
Copy link
Member

@adamkendis adamkendis left a comment

Choose a reason for hiding this comment

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

The style looks good with just a small change needed. Ideally, this new focus style should only apply to elements that are focused via keyboard rather than mouse clicks. I believe :focus-visible could accomplish this but it has lousy browser support - might need a polyfill for it if used.

@ghost
Copy link
Author

ghost commented Aug 6, 2020

I made changes using the focus-visible polyfill and its working on chrome, edge, firefox, and ie11 from my testing with Lambda Tunnel. There are a few issues remaining:

  • Text Input changes to focus-visible on mouse-click as well as through tabbing, from my research this seems to be inherent to :focus-visible.

  • Checkboxes in request type selection change are able to be activated on tab, but not checked using keyboard. I believe this is because the box is styled using the label::before so 'return' is not activating the checked state

  • There is an issue with Mac that prevents focus on links through tabbing unless you — set Mac system preferences and add an accessibility:tabfocus preference in Firefox’s about:config (https://stackoverflow.com/questions/11704828/how-to-allow-keyboard-focus-of-links-in-firefox). After I made those changes, focus styles showed up on tab in firefox

Copy link
Member

@adamkendis adamkendis 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! Working for me in chrome, firefox, edge, IE11. Let's leave the input focus functionality in for now and see what UI thinks. I think this is normal behavior.

I'll add the request type checkbox issue to the keyboard accessibility ticket #582. Good find!

@adamkendis adamkendis merged commit 43a866b into hackforla:dev Aug 8, 2020
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.

Focused elements - update focus style
1 participant