-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Term Description: Add border block support #63630
Conversation
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 for putting together this one @akasunil 👍
In general, the adoption of border support for the Term Description block works well for me.
✅ Global border styles for Term Description apply correctly
✅ Global border styles for the block display consistently between the frontend and editor
✅ Block instance border styles override the global border styles
✅ Block instance border styles apply consistently on frontend and in the editor
Screen.Recording.2024-07-17.at.4.27.36.PM.mp4
I did notice one minor issue though to do with the block not having box-sizing: border-box
.
Screen.Recording.2024-07-17.at.4.35.01.PM.mp4
This issue wasn't introduced in this PR but it does make the issue more prominent.
Adding the box-sizing rule to the block's default styles should help address the issue.
P.S. Would you mind updating the test instructions to cover the interactions between Global Styles and the block support on block instances? It will help enable others to review these PRs 🙏
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. |
Size Change: +389 B (+0.02%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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 for iterating on this @akasunil 👍
Everything is looking good from my end now with the addition of the border-box
box sizing.
Nice work!
* Add border support to term description block * Add box sizing style to term description block Co-authored-by: akasunil <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
What?
Add border block support to the
Term Description
block.Part of #43247
Why?
Term Description
block is missing border support.How?
Adds the border block support in block.json
Testing Instructions
Term Description
block's border is configurable via Global StylesTerm Description
block and Apply the border stylesScreenshots or screencast
In backend:
In frontend: