-
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
List View: Use badge component for block anchors #68566
Conversation
Size Change: -10 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Flaky tests detected in 424297e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12706751841
|
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.
Thanks, @juanfra!
There seems to be a bug when anchors are too big. This breaks the layout, and block options are no longer displayed.
Try using something like a-very-long-anchor-a-very-long-anchor
.
Screencast
CleanShot.2025-01-10.at.11.37.35.mp4
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. |
Thanks, @Mamaduka! Great catch—looks like that happened because the styles were completely removed. I’ve re-added the ones that handle this issue. |
Thanks, @juanfra! I'll re-test the PR later today, but besides that issue everything worked correctly ✅ |
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.
Works as expected ✅
What?
Fixes #68020 (It was the last remaining item)
Use the new Badge component for anchors in list view. There's a few minor aesthetic changes when using the badge component styles for the anchors.
I also had to set the text color for the selected state, in order to override the specificity coming from the badge component.
Why?
To improve consistency and sustainability.
How?
Using the new Badge component, removing unused styles.
Testing Instructions
Screenshots or screencast
badge-list-view.mp4