3 ms·
> In a situation like this, the ideal is to put the radio button inside its label, and make the label `display: block`, or something else that achieves this eff
by eyelidlessness 6y ago
> In a situation like this, the ideal is to put the radio button inside its label, and make the label `display: block`, or something else that achieves this effect (if done carefully, you might even find `display: grid` suitable nowadays).
This is actually not great for accessibility. It may be okay for some screen readers if you also populate the for/id attributes, but even then you should test to be sure.
Edit to add:
> Video thumbnail: an interesting thing that has just occurred to me on this is that the poster attribute doesn’t let you provide multiple formats like <picture> does. Hmm, so you probably keep serving a JPEG here instead of WebP, AVIF or whatever else. Wonder if anything can ever be done about that. I can imagine them making poster="#foo" followed by <picture id="foo"> inside the <video> work. Eek, this similarity to svg:use made me realise that you can actually achieve this goal with SVG already: the code below ought to do it; ugh!
My solution is to skip the poster attribute and use a picture with object-fit: cover.
- extra88 6y agoI think implicit instead of explicit labels are only an issue for Dragon NaturallySpeaking. Nuance insists Dragon is not an assistive technology and has been basically ignoring in this area. Maybe once the deal is done Microsoft will give the subject attention, they’ve been doing a lot of good for accessibility.