-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
There is no focus highlighting for buttons in active state #12154
Comments
What are you suggesting exactly ? |
Sorry, I've updated the ticket. Hopefully it is clearer now. In short it should still get focus highlighting even when the .active class is applied. |
Maybe ... its not a big issue |
It's probably less of an issue for the case of the :active pseudo selector. However, for the .active class it is. I'd want to use it for a toggle button, but now it posses both a usability and an accessibility issue for the reasons I stated above. |
We apparently remove the focus outline for active stuff:
and since this comes after the |
@cvrebert Why is |
@zdroid |
Hmm. |
@cvrebert No need for it on active. Look at this weird test case. My phone tells me the second button don't need Extended version: it's caused by CSS overriding. When you add something new to styles, it overrides default styles for all states, except when state styles are set differently. 😄 |
The |
It removes gradient for :active also. No need for repeating. 2014/1/12 Mark Otto notifications@github.com
Zlatan Vasović - ZDroid |
Chris, look at comment on your commit. Your curly brace is on new line. 2014-02-09 2:00 GMT+01:00 Chris Rebert notifications@github.com:
Zlatan Vasović - ZDroid |
Thanks. 2014-02-09 10:18 GMT+01:00 Mark Otto notifications@github.com:
Zlatan Vasović - ZDroid |
@cvrebert thanks for fixing this. |
When buttons have the active class applied (.active), there is no focus highlighting on the button. This makes it hard to 1) know that you can deactivate a button and 2) for keyboard only users to know where they are. When a button is active it should still receive focus highlighting when the button is focused by either the mouse or keyboard.
Step 1:
Go to the demo: http://getbootstrap.com/css/#buttons-active
Step 2:
Using the mouse or the keyboard put focus on any of the active buttons.
Note that you cannot tell which one is focused.
Tested on:
Safari, Chrome, Firefox (Mac OS 10.9.1)
IE 11, Chrome, Firefox (Windows 8.1)
The text was updated successfully, but these errors were encountered: