Skip to content

Add accessible-focus library to enable keyboard focus styling#87

Merged
ryelle merged 6 commits intomasterfrom
add/a11y-focus
Feb 6, 2017
Merged

Add accessible-focus library to enable keyboard focus styling#87
ryelle merged 6 commits intomasterfrom
add/a11y-focus

Conversation

@ryelle
Copy link
Copy Markdown
Contributor

@ryelle ryelle commented Feb 6, 2017

I was testing jetpack & noticed there wasn't very good focus styling for keyboard navigation, but there was support for it in quite a few existing components. It looks like some components that were imported use calypso's accessible-focus library, which drops a class onto html when the keyboard is used. I've ported that library over to dops-components, and updated the classes to use dops-accessible-focus in line with the rest of the class names.

This isn't really testable on its own, but I'll open a Jetpack PR shortly to enable it in JP.

@ryelle ryelle self-assigned this Feb 6, 2017
@ryelle ryelle changed the title Add accessibility-focus library to enable keyboard focus styling Add accessible-focus library to enable keyboard focus styling Feb 6, 2017
@zinigor
Copy link
Copy Markdown
Contributor

zinigor commented Feb 6, 2017

Tested a bit in Jetpack, it works well and seems like a really good idea, it makes outlines more prominent but only when it's needed.

@ryelle ryelle merged commit f8d63da into master Feb 6, 2017
@jeherve jeherve deleted the add/a11y-focus branch February 8, 2017 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants