-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make check label cursor customizable #29633
Conversation
@patrickhlauke, is this a good idea? |
this is a constant debate. by default browsers don't show do it. this would be an opinionated change. |
On the other hand, right now some user don't know they can click on the switch / checkbox, so an option might be interesting to let people decide if they want it to be displayed as a cursor, WDYT ? |
there's a lot of things users don't know ... there's a fine line between helping users vs diverging too much from what browsers do by default on all other sites... there's no right or wrong around this question (despite strong opinions one way or another like https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b) ... so having a variable strikes a certain balance at least |
@patrickhlauke what's the prefered way? Create a new variable or rename & expand the current one? |
I wouldn't use a new |
This targets the wrong branch. |
Ok, so which one should I use ? (It's my first "contribution") |
The master branch is the default branch. |
@XhmikosR neither the file nor the class exist on the master branch. |
Maybe this is only v4 specific then. |
@XhmikosR the default value is null, as of the actual behavior, so I don't see how it is a BC. |
Yeah, I already edited my comment. |
Custom forms are no longer custom in v5, which is why these styles don't appear there. They're all consolidated into the default form controls so we have a single set of forms. I'm good with the null variable here. |
@mdo: does this patch apply in master, though? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this
Use a cursor pointer on custom form labels to indicate that the element is "clickable"