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

fix(menuButton): fix scale for disabled menu button #2319

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

shaharzil
Copy link
Contributor

@shaharzil shaharzil requested a review from a team as a code owner August 5, 2024 09:25
@@ -73,6 +73,7 @@
border-color: var(--disabled-background-color);
color: var(--disabled-text-color);
cursor: not-allowed;
pointer-events: none;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a bit risky
what if we would just not apply the css for focus and hover in disabled mode?

.wrapper:focus:not(.disabled),
.wrapper:hover:not(.disabled) {
  background-color: var(--primary-background-hover-color);
}

Copy link
Contributor

@YossiSaadi YossiSaadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after a talk decided to go with the pointer-events, since this is the same way we're using in Button, and we didn't had special issues

@shaharzil shaharzil merged commit c84a9ae into master Aug 11, 2024
10 checks passed
@shaharzil shaharzil deleted the fix-menubutton-disabled-active branch August 11, 2024 09:31
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.

2 participants