-
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
DataViews: Restore preview focus outline in grid layout #62991
Conversation
Size Change: -96 B (-0.01%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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. |
I would like to add a backport label to this PR because I consider it a regression that occurred in WP6.6. |
Thank you. I tested on Chrome on Windows 11 |
@@ -43,7 +43,7 @@ | |||
overflow: hidden; | |||
height: 100%; | |||
width: 100%; | |||
border-radius: 3px 3px 0 0; | |||
border-radius: 3px; |
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.
Good catch :) |
15df46f
to
a8f8ba9
Compare
Thank you for your reviews. The size should now be unified to 4px, and all four corners should be rounded on all screens. By the way, the style around Dataview has changed significantly in the trunk, so this PR resolves the conflict. To backport this PR to WP6.6, cherry-picking will not work, and we will need to manually create a commit with the changes for WP6.6 😅 |
Flaky tests detected in a8f8ba9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9745313520
|
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.
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: carolinan <poena@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6 branch to get it included in the next release: 7398659 |
There were no problems - the automatic cherry-pick committed the changes correctly and I verified that the wp/6.6 branch showed the focus outline we expected. |
Fixes #62958
What?
This PR fixes an issue where the focus outline was not displayed on the preview button in the grid layout.
Why?
This issue is probably related to #61159 where we unboxed grid items. The box-shadow is invisible because
overflow: hidden
is applied to the preview button wrapper.dataviews-view-grid__media
.How?
I removed
overhidden:flow
and adjusted the rounded corners. The preview button itself already hasoverflow: hidden
, so there should be no problem with the current unboxed style.Testing Instructions
Screenshots or screencast
21545edc7c503b69b0f45801b94be01b.mp4