-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add more colour options to the Table block #594
Comments
What's the use-case @meganelizabethphillips is needing a broader range of colors for? Is there an alternate path to meeting that use-case that doesn't require additional colors? |
The objective is to have colours for table backgrounds that are more inline with the colours used for a particular event or colours more suited to LF style. A use case could be the Slack channel tables. If 6 tables are used, there are only 4 colours to choose. |
In that case I'd just go with adding extra styles for now. I assume sooner or later this will get fixed in core. |
In terms of changing the table background color, can't the table just be put inside of a Group block with the background color set? |
I don't know enough about how group blocks work to be able to say yes or no. Previously a group block was when you selected a bunch of existing blocks and grouped them together. I was unaware you could set a background color - is this an update in the new version?
Thanks!
|
The Group block is almost equivalent to the Stackable Container block. You can set text and background colors etc. Here are several examples of how we can use it going forward. |
Closing this issue, as since WordPress 5.8, tables can now have any color set as the background |
Megan has requested a broader range of colours used on the Table block.
I thought this would be straightforward, but it seems that the pale colours are built-in to the block and not editable. They sync with the "striped" table style and provide high contrast for accessibility (we don't use the striped style as it clashes with the default table styling). The issue is replicated on CNCF.
Seems this is a known issue, but no progress is happening with solutions:
WordPress/gutenberg#19659
WordPress/gutenberg#16478
Solutions for us:
The text was updated successfully, but these errors were encountered: