-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Button: Update disabled state to be without background. #50496
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,21 +118,14 @@ | |
outline: 1px solid transparent; | ||
|
||
&:active:not(:disabled) { | ||
background: $components-color-gray-300; | ||
color: $components-color-accent-darker-10; | ||
box-shadow: none; | ||
} | ||
|
||
&:hover:not(:disabled) { | ||
color: $components-color-accent-darker-10; | ||
} | ||
|
||
&:disabled, | ||
&[aria-disabled="true"], | ||
&[aria-disabled="true"]:hover { | ||
// TODO: Prepare for theming (https://github.com/WordPress/gutenberg/pull/45466/files#r1030872724) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that this comment still applies, right? We should still think about adding variables at the theme level for disabled UI There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The TODO comments were specifically for the issue of As for the theme-ready gray variables, we simply haven't put them to use anywhere yet. So I was kind of thinking of that as a big separate task rather than a contextual TODO item 😄 |
||
color: lighten($gray-700, 5%); | ||
background: lighten($gray-300, 5%); | ||
color: $gray-600; | ||
background: transparent; | ||
transform: none; | ||
opacity: 1; | ||
box-shadow: none; | ||
|
@@ -165,12 +158,12 @@ | |
color: $components-color-accent; | ||
background: transparent; | ||
|
||
&:hover:not(:disabled) { | ||
&:hover:not(:disabled, [aria-disabled="true"]) { | ||
// TODO: Prepare for theming (https://github.com/WordPress/gutenberg/pull/45466/files#r1030872724) | ||
background: rgba(var(--wp-admin-theme-color--rgb), 0.04); | ||
} | ||
|
||
&:active:not(:disabled) { | ||
&:active:not(:disabled, [aria-disabled="true"]) { | ||
// TODO: Prepare for theming (https://github.com/WordPress/gutenberg/pull/45466/files#r1030872724) | ||
background: rgba(var(--wp-admin-theme-color--rgb), 0.08); | ||
} | ||
|
@@ -239,7 +232,7 @@ | |
} | ||
} | ||
|
||
&:not([aria-disabled="true"]):active { | ||
&:not(:disabled, [aria-disabled="true"]):active { | ||
color: $components-color-foreground; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I object but just checking since it wasn't mentioned in the PR description — is it intentional for the text to turn black when clicked?
CleanShot.2023-05-13.at.00.20.06.mp4