Skip to content

Display hand cursor for label with "for" attribute in all browsers except#1

Closed
Calvein wants to merge 1 commit intonecolas:masterfrom
Calvein:patch-1
Closed

Display hand cursor for label with "for" attribute in all browsers except#1
Calvein wants to merge 1 commit intonecolas:masterfrom
Calvein:patch-1

Conversation

@Calvein
Copy link
Contributor

@Calvein Calvein commented May 31, 2011

Display hand cursor for label with "for" attribute in all browsers except IE6.

@necolas
Copy link
Owner

necolas commented May 31, 2011

Why would you want to do this? It's not default behaviour in any browser and what are the benefits of doing this for those with the for attribute rather than all label elements (so you could include people who wrap label around input etc without the need for the for attribute at all)?

@Calvein
Copy link
Contributor Author

Calvein commented May 31, 2011

Oh, I read the README a bit too fast, you're right, it's not default behaviour it doesn't have to be there, my bad.

@Calvein Calvein closed this May 31, 2011
@juangiordana
Copy link

Hello Necolas,

I'm sorry for bringing this back up but wouldn't this follow in the category "Improves usability with subtle improvements", even though it's not default behaviour in any browser?

@necolas
Copy link
Owner

necolas commented Aug 13, 2011

I don' think it is a usability improvement. It's confusing to see a pointer cursor over non-link text. There is also no way to add the cursor to label in all browsers without also introducing the possibility of the cursor pointer appearing even when the label isn't properly associated with a form input. So, I think it introduces usability problems.

@TheDutchCoder
Copy link

This is still a valid discussion point in my opinion (I'll close my Issue for this).

The WCAG doesn't have anything explicit to say about it, but this article (http://usability.com.au/2008/09/accessible-forms-using-wcag-2-0/) states that users with a visual disability, who still use a mouse will benefit from explicit linking between a label and its control.

Since the label should be clicked for the cursor to appear in its related control, it makes more sense to display a pointer (just like with other clickable elements like links and buttons).

Just because browsers seem to default to not showing a pointer, doesn't make it the best possible solution (isn't that why we have things like normalize in the first place? ;-)).

I always set labels to explicitly show a pointer, as I can always remove it with a class if I ever need to (don't think I ever have).

Thoughts?

@FagnerMartinsBrack
Copy link

There is also specificity issues with every new addition that should be taken into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants