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 buttons should not scale when clicked #101

Closed
eevleevs opened this issue Jan 12, 2023 · 3 comments
Closed

Disabled buttons should not scale when clicked #101

eevleevs opened this issue Jan 12, 2023 · 3 comments

Comments

@eevleevs
Copy link

No description provided.

@jenil
Copy link
Owner

jenil commented Jan 12, 2023

@eevleevs can you give more details?

@hey-red
Copy link

hey-red commented Jan 13, 2023

I think we shouldn't apply transform for disabled buttons:

.button:active:not([disabled]),
[type=button]:active:not([disabled]),
[type=reset]:active:not([disabled]),
[type=submit]:active:not([disabled]),
button:active:not([disabled]) {
    -webkit-transform: scale(.98);
    transform: scale(.98);
}

or for all disabled elements:

*:disabled {
    -webkit-transform: none !important;
    transform: none !important;
}

@eevleevs
Copy link
Author

just what I meant 👍

@jenil jenil closed this as completed in 127eb75 Mar 21, 2023
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

No branches or pull requests

3 participants