-
Notifications
You must be signed in to change notification settings - Fork 4.8k
RadioControl: add disabled styles #77127
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
base: trunk
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
|
|
||
| font-family: $default-font; | ||
| font-size: $default-font-size; | ||
|
|
||
| } | ||
|
|
||
| .components-radio-control__group-wrapper.has-help { | ||
|
|
@@ -34,7 +35,16 @@ | |
| margin: 0; | ||
| padding: 0; | ||
| appearance: none; | ||
| cursor: pointer; | ||
|
|
||
| &:not(:disabled) { | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| &:disabled { | ||
| background: $gray-100; | ||
| border-color: $gray-300; | ||
| opacity: 1; | ||
| } | ||
|
Comment on lines
+39
to
+47
|
||
|
|
||
| &:focus { | ||
| @include button-style-outset__focus(var(--wp-admin-theme-color)); | ||
|
|
@@ -55,7 +65,9 @@ | |
| grid-column: 2; | ||
| grid-row: 1; | ||
|
|
||
| cursor: pointer; | ||
| .components-radio-control:not(.is-disabled) & { | ||
| cursor: pointer; | ||
| } | ||
| line-height: $radio-input-size-sm; | ||
|
|
||
| @include break-small() { | ||
|
|
||
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.
I've noticed these git conflict marks and removed them at b9b22f1
I am not sure if the changelog needs to be tweaked?
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.
It's enough to remove the markers, they were introduced at https://github.com/WordPress/gutenberg/pull/76980/changes#r3050030572