Repository navigation
Components/Button: Don't use box-shadow for secondary buttons #79982
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
Changes from all commits
191e4ea
038d2e9
9475b5f
3878e41
a20eeba
488a6a0
a5d756c
6d525ce
99c3400
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 |
|---|---|---|
|
|
@@ -3,12 +3,7 @@ | |
|
|
||
| .block-editor-content-only-controls__link { | ||
|
Contributor
Author
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. |
||
| width: 100%; | ||
| box-shadow: inset 0 0 0 $border-width $gray-400; | ||
|
|
||
| &:focus:not(:disabled) { | ||
| // Allow smooth transition between focused and unfocused box-shadow states. | ||
| box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | ||
| } | ||
| border-color: $gray-400; | ||
| } | ||
|
|
||
| .block-editor-content-only-controls__link-row { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,13 +3,8 @@ | |
|
|
||
| .block-editor-content-only-controls__media { | ||
|
Contributor
Author
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. |
||
| width: 100%; | ||
| box-shadow: inset 0 0 0 $border-width $gray-400; | ||
| border-color: $gray-400; | ||
| padding-right: $grid-unit-40; | ||
|
|
||
| &:focus:not(:disabled) { | ||
| // Allow smooth transition between focused and unfocused box-shadow states. | ||
| box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | ||
| } | ||
| } | ||
|
|
||
| .block-editor-content-only-controls__media-replace-flow { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ | |
| .editor-post-featured-image__preview { | ||
|
Contributor
Author
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. |
||
| width: 100%; | ||
| padding: 0; | ||
| box-shadow: 0 0 0 0 var(--wp-admin-theme-color); | ||
| border-color: $gray-400; | ||
| overflow: hidden; // Ensure the focus style properly encapsulates the image. | ||
| outline-offset: -#{$border-width}; | ||
| min-height: $grid-unit-50; | ||
|
|
@@ -76,15 +76,6 @@ | |
| } | ||
| } | ||
|
|
||
| .editor-post-featured-image__toggle { | ||
| box-shadow: inset 0 0 0 $border-width $gray-400; | ||
|
|
||
| &:focus:not(:disabled) { | ||
| // Allow smooth transition between focused and unfocused box-shadow states. | ||
| box-shadow: 0 0 0 currentColor inset, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | ||
| } | ||
| } | ||
|
|
||
| .editor-post-featured-image__actions { | ||
| &:not(.editor-post-featured-image__actions-missing-image) { | ||
| bottom: 0; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,6 @@ | |
| // Force the appender to always have "light mode" styling as it appears in a | ||
| // light colored placeholder. | ||
| .is-dark-theme .wp-block-widget-group__placeholder .block-editor-button-block-appender { | ||
|
Contributor
Author
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. |
||
| box-shadow: inset 0 0 0 $border-width $gray-900; | ||
| border-color: currentColor; | ||
| color: $gray-900; | ||
| } | ||










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.
Block Inspector > Style Variations