You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table block can use the Border Settings Tool(useBorderProps) by adding appearanceTools in theme.json or add_theme_support( 'border' ) in the classic theme.
However, this Border Settings Tool is not working as configured, affecting even the inside of the table (td th).
I have added the class "has-individual-borders" to prevent it from affecting td and th in the table, and I have complemented it with CSS, but it is incomplete.
Current table block specifications
The table rules themselves are currently fixed by CSS.
There is no function to change the table rules.
Step-by-step reproduction instructions
Current CSS specification
Table rules are fixed with this CSS code.
The class "has-individual-borders" for in-block editor corrections is also no longer needed.
However, erasing CSS in the above manner does not solve the original problem.
The Border Settings Tool(useBorderProps) is designed to place a border around the perimeter of a block, so do not change the border of a table (td or th).
Shouldn't the code be in the figure tag above the table tag?
As it is, it will be a major stumbling block when table manipulation functions are added in the future.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.4.1
Gutenberg 17.0.2
Theme TT4
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
Table block can use the Border Settings Tool(useBorderProps) by adding appearanceTools in theme.json or add_theme_support( 'border' ) in the classic theme.
However, this Border Settings Tool is not working as configured, affecting even the inside of the table (td th).
I have added the class "has-individual-borders" to prevent it from affecting td and th in the table, and I have complemented it with CSS, but it is incomplete.
Current table block specifications
The table rules themselves are currently fixed by CSS.
There is no function to change the table rules.
Step-by-step reproduction instructions
Current CSS specification
Table rules are fixed with this CSS code.
Also, the class "has-individual-borders" is set for in-block editor corrections.
Case1
Table block in place (nothing changed)
Output HTML tags
This is standard.
Case2
Set all Border values to 0.
Output HTML tags
The table borders are overridden and erased.
This is caused by the following CSS, which affects the correct display.
To display it correctly, either of the following methods will display it correctly.
Case3
Set all Border values to 10.
Output HTML tags
The table rules are overridden and all are 10px.
The cause is that the following CSS affects them and they are not displayed correctly.
To display it correctly, either of the following methods will display it correctly.
What is your proposed solution?
In other words, in all cases, if you remove this CSS, it will display as expected.
The class "has-individual-borders" for in-block editor corrections is also no longer needed.
However, erasing CSS in the above manner does not solve the original problem.
The Border Settings Tool(useBorderProps) is designed to place a border around the perimeter of a block, so do not change the border of a table (td or th).
Shouldn't the code be in the figure tag above the table tag?
As it is, it will be a major stumbling block when table manipulation functions are added in the future.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.4.1
Gutenberg 17.0.2
Theme TT4
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: