-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
[accessibility] Button plugin doesn't apply "checked"-property to checkbox/radio button when activated with the keyboard #18874
Comments
Implementing the suggestion from #17021 ought to fix this and make the plugin simpler in general:
|
Implementation sketch of my suggestion: http://jsbin.com/lidedi/edit?html,css,output |
slightly modified/expanded (stealing some of the current buttons styles) sketch http://codepen.io/patrickhlauke/pen/PNRMve |
It might be possible, with some fiddling, to move the |
@cvrebert revisited this briefly today...something like http://codepen.io/patrickhlauke/pen/QEWRpp ? /cc @mdo |
@patrickhlauke I think the approach is good enough for a PR, so we can start nitpicking it properly 😄 |
roger roger...will get onto that this week |
@cvrebert made an attempt, but failing to get anything to work out properly with the current mixins. it also looks fairly ugly... with a super-simplified markup of
i'd conceptually would need to do something like
but this obviously fails in Sass. not sure how to proceed without inventing completely new classes or rewriting the whole mixin approach :( |
FWIW i updated the pen http://codepen.io/patrickhlauke/pen/QEWRpp to this much simpler (from a markup and styles point of view) approach |
Hey there! |
I can also reproduce this in the bootstrap docs example, using firefox 60.0.2 and chrome 67.0.3396.99. If you click on any of the three buttons and then change your selection with the keyboard, it looks as if you've selected another button. The underlying radio input selection is not changed though. You can see this by temporarily deactivating the clip-style on the radio inputs. Running Thus, if you have these buttons in a form and submit the form, the submitted value for the toggle buttons is not correct. |
I've seen the #18866 and I agree.
But when the user interact with the keyboard (tab to navigate, space bar to check/uncheck) the checked property don't be updated onto radio and checkboxes.
http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons
The text was updated successfully, but these errors were encountered: