-
Notifications
You must be signed in to change notification settings - Fork 6.7k
demo(buttons): use labels instead of buttons for groups #1482
Conversation
* Align with BS3 markup. Closes angular-ui#1323
@bekos is it enough? I was under the impression that we need an input field inside a label. But maybe not! |
@pkozlowski-opensource I don't think we need an |
@bekos I see. My only real concern (which I should have voiced previously!) is about accessibility. I simply don't know how this all is going to work with screen readers. But I guess we can look into it while dealing with aria issues. Which is one of the big topics I would like to tackle next year. |
@pkozlowski-opensource Hmm. You are right. Didn't think of it, but yes we need to tackle all these things about accessibility soon. Because it is just the demo, we can also add an input inside the label that is binded to the model. What about this? |
Not sure, we need to play with it. I suspect that BS guys are adding the input inside so screen-readers see input, but I'm really not sure and would like to better understand this. |
I don't think input is there only for screen readers. Bootstrap handles traditional applications and a button click should correspond to a trigger on a checkbox I suppose. |
Looked it up a little bit, and found this article: http://www.marcozehe.de/2013/04/24/easy-aria-tip-6-making-clickables-accessible/ With this quote (within the example of a
The aria attributes are used over tag names to show something clickable. So yes, as far as I can see we can have a clickable Just pulled it down, and it works great without conflicts. Going to merge. |
Hey there boffins, I had hoped it would be a simple matter of adding tabindex="0" to the label but as discussed here: it's not really properly supported. For example the demo checkboxes and radios at http://angular-ui.github.io/bootstrap/ don't seem to be keyboard accessible (apart from the toggle cos that still uses a button) Bootstrap has an issue here so maybe this needs to filter down into the next Angular UI update? Does anyone know of a workaround? |
Closes #1323.