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

"outline: none" on form inputs prevents keyboard focus indicator #254

Open
clytwynec opened this issue Jan 11, 2016 · 3 comments
Open

"outline: none" on form inputs prevents keyboard focus indicator #254

clytwynec opened this issue Jan 11, 2016 · 3 comments

Comments

@clytwynec
Copy link

See:

This is would cause an accessibility issue.

FYI @cptvitamin @clrux

@downzer0
Copy link
Contributor

This is a tricky one. We're using a custom outline style (in the form of border-color) to show focus. Though, now that I think about it, I'm wondering if the change in border color is enough of a change to be considered "focused".

Is this causing automated tests to fail? If we decided to make the "focus" style more noticeable, would this be okay if we kept outline: none?

@clytwynec
Copy link
Author

Ah, yea. I should have been more specific I guess. This is really only affecting checkbox/radio type inputs.

@downzer0
Copy link
Contributor

Ah, yes, hm.

Two suggestions:

  • use default browser outlines for all input types (blue glow on a mac, black dotted in Firefox, etc.), or
  • exclude certain input types from this CSS selector using :not or similar.

The latter would use default browser styling on radios and checkboxes, but other input types would have our custom styling.

My preference (but this is ultimately up to @talbs)

  • use default browser styling as it's:
    • recognizable
    • consistent
    • simpler

Edit: We have control over the focus styles for our custom/replaced inputs, including radios and checkboxes, but not the default. So, we could alternatively write separate rules for the non-replaced versions and the replaced versions, the latter getting outline: none and border treatments, the former using browser defaults.

@talbs talbs changed the title "oultine: none" on form inputs prevents keyboard focus indicator "outline: none" on form inputs prevents keyboard focus indicator Jan 15, 2016
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

No branches or pull requests

2 participants