Skip to content
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

Disabled checkboxes and buttons do not have the accompanying cursor #9511

Closed
JustinDrake opened this issue Aug 14, 2013 · 8 comments
Closed

Comments

@JustinDrake
Copy link

Disabled inputs, selects and links have cursor: not-allowed. Not so for checkboxes and buttons. Is the inconsistency on purpose?

@cvrebert
Copy link
Collaborator

@mdo What's the story behind

cursor: default;
(which is still in the current code)?

@mdo mdo closed this as completed in #9578 Aug 15, 2013
mdo added a commit that referenced this issue Aug 15, 2013
…eckbox-radio

fixes #9511; set cursor:not-allowed for disabled buttons,checkboxes,radios
@JustinDrake
Copy link
Author

@mdo @cvrebert Still not fixed for buttons.

screen shot 2013-08-15 at 18 51 36

@JustinDrake
Copy link
Author

@cvrebert @mdo Also, the checkbox cursor doesn't work properly. It seems to only work right outside the checkbox only.

@cvrebert
Copy link
Collaborator

Tracking checkbox issue separately as #9614.

@cvrebert
Copy link
Collaborator

We are properly setting cursor: not-allowed;, but pointer-events: none; is interfering with it. We want both of those, so not sure what to do here.

@cvrebert cvrebert reopened this Aug 15, 2013
@mdo
Copy link
Member

mdo commented Aug 15, 2013

The buttons will have to stay without the cursor I think—I'm onboard with the pointer events I think. Fixed the checkbox thing though.

@mdo mdo closed this as completed Aug 15, 2013
stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
@tkrotoff
Copy link
Sponsor Contributor

We are properly setting cursor: not-allowed;, but pointer-events: none; is interfering with it

I've tested under Chrome 35, IE11 and Firefox 28; they all have the same behavior :/
(issue on StackOverflow: http://stackoverflow.com/questions/17877535/css-pointer-events-and-cursor-style).

I think it is a bug in current browser implementations.
The specification just says pointer-events none The given element does not receive pointer events; it does not say that the cursor should be forced to default.
See https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events
See http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty

@hnrch02
Copy link
Collaborator

hnrch02 commented Jun 18, 2014

@tkrotoff There is no specification for pointer-events on HTML elements yet, it has been pushed to CSS Basic User Interface Module Level 4.

Its extension to HTML elements, though present in early drafts of CSS Basic User Interface Module Level 3, has been pushed to its level 4.

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events#Specifications

Also, it can be argued that setting cursor on an element happens on hover, and because pointer-events: none prevents the element from firing any mouse related events, it is thusly the correct behavior.

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

No branches or pull requests

5 participants