-
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
Post Author Name: Add Border Support #64530
Conversation
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: +283 B (+0.02%) Total Size: 1.77 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 the PR @shail-mehta 👍
Functionally this works well. I did notice that the PR alters the default display of spacing controls which was a bit unexpected. It also wasn't detailed in the PR description. Was this intended?
✅ Global Styles apply correctly
✅ Block instance styles override global styles
✅ Styles display consistently across editors and frontend
✅ Box sizing allows parent to enforce width
With a tweak to the default controls, I think this should be pretty close.
P.S. My bandwidth and priorities will be shifting somewhat in the near future, so I might not be able to review many block support PRs or respond to pings quickly. Please keep creating as many PRs as you like. They are really helping move the needle on border support adoption 🙇
Even without pinging individuals for review, any submitted PR will get looked at by the broader community.
Noted. I'll take care of this next time. |
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 one @shail-mehta 👍
✅ Global Styles apply correctly
✅ Block instance styles override global styles
✅ Styles display consistently across editors and frontend
✅ Box sizing allows parent to enforce width
LGTM 🚢
Screen.Recording.2024-08-15.at.4.05.08.PM.mp4
Note: In the video above I had a caching issue preventing the box sizing rule from applying on the frontend. After resolving that it was present and applied.
What?
Add border block support to the
Post Author Name
block.Part of #43247
Why?
Post Author Name
block is missing border support.How?
Adds the border block support in block.json.
Testing Instructions
Post Author Name
block's border is Configurable via Global Styles.Post Author Name
block and Apply the border Styles.Post Author Name
block styles take precedence over global Styles.Post Author Name
block borders display correctly in both the Editor and Frontend.Screenshots or Screencast
add-border-support-in-author-name.mp4