Skip to main content
9 events
when toggle format what by license comment
Jan 20 at 1:24 comment added aaaaaa Right the expectation is for labels to be part of the control they are adhered to (via id). e.g. <label for="some-control-id">some label</label> has particular behavior when clicked depending on the control. To nest a link in there would be awkward.
Jan 19 at 17:21 comment added Austin Hemmelgarn @Barmar Having the link in the label would be a nested control, because the label is part of the checkbox control as almost every web browser and UI toolkit implements checkboxes.
Jan 19 at 15:32 comment added Barmar @AustinHemmelgarn This isn't really "nested within other controls", the two controls are separate. Most sites don't use a nested presentation as in the OP.
Jan 18 at 23:48 comment added Stonetip Accessible UI is going to have the text toggle the checkbox on or off when clicked or tapped, e.g using: <input type="checkbox" name="checkbox" value="value"> <label for="checkbox_id">Text</label> So clicking on a link inside a label would create a conflict.
Jan 18 at 21:27 comment added Austin Hemmelgarn @Carmeister It’s partly about user expectations. It’s unusual to have mixed controls (links are controls from a UX perspective) nested within other controls, so users will generally not expect this. However, it’s also about effective navigation. Consider how this structure interacts with tab indexing.
Jan 18 at 18:42 comment added Carmeister It is extremely common to have hyperlinked words in the middle of sentences. (I see four such links on this very webpage!) Why would it be any more confusing in this particular case? Or are you saying the practice should be avoided in general?
Jan 18 at 11:38 comment added MoritzLost Thanks! Demonstrating how screenreaders will read the sentence is a good argument! In combination with the click-target issue, this should be convincing enough :)
Jan 18 at 11:37 vote accept MoritzLost
Jan 18 at 11:29 history answered jazZRo CC BY-SA 4.0