-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Inserter: Fix focus style for disabled items #70691
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
Conversation
The component also has styles for gutenberg/packages/block-editor/src/components/inserter-list-item/style.scss Lines 88 to 95 in 5b19ab0
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Nice one.
|
||
&:not(:disabled) { | ||
&:focus { | ||
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
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'm seeing some new variable formats in SCSS, and some updated mixins. I wonder if we should employ a mixin for this while we're at it, perhaps block-toolbar-button-style__focus
?
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 just tried, and it doesn't work for our case. The 'box-shadow' is cut off, just like on the trunk.
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.
Oh right, we need one that's inset only. Honestly it might be worth a new mixin. But no blockers.
Size Change: -3 B (0%) Total Size: 1.89 MB
ℹ️ View Unchanged
|
Flaky tests detected in 356907d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/16218456024
|
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
What?
Related #70663.
PR fixes focus styling for disabled items in the Inserter.
Why?
Items are still focusable when disabled; the focus styles should be applied correctly.
Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast