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

Don't use pointer cursor on disabled buttons by default #5772

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

adamwathan
Copy link
Member

Resolves #5768.

This PR adds the following CSS to Preflight:

:disabled {
  cursor: default;
}

This ensures that even though we reset buttons to use the pointer cursor, disabled buttons use the browser default which does less to communicate the button being interactive and makes more sense when the element can't actually be clicked.

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.

Preflight base styles is setting cursor:pointer by default on disabled buttons
1 participant