A developer building a gallery script explores an accessibility dilemma: nesting a link inside a label that also contains a checkbox. The pattern mixes two interaction modes (navigation via link and selection via checkbox) within the same label element. The post examines whether this causes issues for screen reader users and older assistive technology, presents an alternative using explicit `for`/`id` associations, and raises the question of whether it's better to separate the two interaction modes entirely rather than combining them.

2m read timeFrom christianheilmann.com
Post cover image
1 Comment

Sort: