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
Apply cursor: pointer to button elements #4
Comments
Wouldn't this be more functionally appropriate?
|
Normalize had this feature: button,
[type="button"],
[type="reset"],
[type="submit"] {
cursor: pointer;
}
[disabled] {
cursor: default;
} But it was removed because of this comment:
full comment: necolas/normalize.css#371 (comment) I agree with said comment and have chosen not to add |
I do definitely think that buttons should have |
Very interesting discussion. Personally, when I see a hand cursor appear as I hover over an element, I don't think clicking will take me to a different URL. I just think this element is clickable and expect something to happen when I click. When I see a button I think the same thing. I'm curious if others feel the same way. |
@diptajbasu That is the same train of thought I have. There may have been a time where the only interactive element on a page was a hyperlink, but times have changed. Hovering over to links to ids also trigger a pointer curser but do not direct to an external site. Buttons have taken the place of hyperlinks in terms of same-page interaction. |
Devil's advocate here: it may be a good idea for functionality's sake, but it's not really a "reset." Is ress supposed to be an extension of normalize, or a more feature-rich reset-ish css library? |
@JasonEtco: ress is a feature rich CSS reset. I think we can add this new feature, button,
[type="button"],
[type="reset"],
[type="submit"]
[role="button"] {
cursor: pointer;
}
[disabled] {
cursor: default;
} Everyone agrees with this snippet of code? (I also added |
@filipelinhares in that case, go for it. I think everyone can agree. What about |
The semantics of |
🎉 |
It has always bugged me that buttons don't default to the pointer cursor.
An implementation that excludes the "disabled" attribute would make sense.
The text was updated successfully, but these errors were encountered: