-
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
Fix/50850 Global Style applied correctly to the table block #55047
base: trunk
Are you sure you want to change the base?
Conversation
Warning: Type of PR label error To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. |
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. |
@t-hamano Is this PR helpful? Can you please check and let me know if any changes are required? |
Sorry for the late feedback 🙇 To be honest, this problem is very complex. This is because we need to be able to override styles set in the global styles at the block level. For this PR, please try the following scenario.
To ideally solve a problem like this, I think we should refactor with the new Selectors API. Additionally, we may also need to adjust this CSS regarding the border. |
@t-hamano thanks for the feedback, I see the areas of improvement and fixed them so that it should solve the issue. Can you please have a look? However, one point to share here is that the padding from the Global styles is applied to the individual |
I realized I did not use the new Selectors API, I'll try to refactor using it and update the PR soon. |
td
borders
@t-hamano I've updated the PR and refactored the table |
Closes #50850
What?
This PR fixes the issue between the global styles and the block editor styles for the table block. Also refactors the
block.json
to use the new Selectors API.Why?
The global styles were only applied to the table tag but a few styles like spacing should be applied to the td tags.
How?
This PR fixes the issue by updating the global styles CSS and the block editor-level styles and also by using the new Selectors API.
Testing Instructions
Screenshots or screencast