-
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
Table: Add border block support #31265
Conversation
This follows the same pattern as the utilities added for the colors block support. Its intended use is in retrieving border related styles and classes to apply to inner block elements.
This extends the table block to opt into border color, style and width block support features. It skips serialization of this support so it can be applied to the inner `table` element.
Size Change: +328 B (0%) Total Size: 1.39 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.
Working nicely 👍
Thanks for testing @talldan! I came across that issue yesterday when I had to switch to another branch, then back to this one. I had to restart the Gutenberg watch task to rebuild it. After that the new styles were picked up correctly. I was able to replicate this just now. Checking out the PR branch the new styles didn't build correctly. Rebuilding Gutenberg then reloading the editor sorted it out for me. That said, there could be a few quirks across themes. I tested in half a dozen of the usual suspects and the borders displayed ok.
In TT1, if not specifying the border style but setting the width and color, the I'd like to have used CSS variables but with the table being a static block they'd have to have been saved in the content which leads to issues with kses in different environments. Open to suggestions on a good approach to solve this. |
Part of #31261
Follow up to #30791
Depends on #31264
Description
Adds block support for border color, style and width to the Table block.
How has this been tested?
Manually.
core/table
context.Screenshots
Types of changes
New feature.
Checklist:
*.native.js
files for terms that need renaming or removal).