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
The hard coded colors in the calendar block does not work well on some colored backgrounds or when the theme sets the link color to a light color.
The color contrast can be too low, making the texts difficult to read.
In the editor, add a few default calendar blocks with default settings.
Place the blocks inside groups with different colored backgrounds to see potential contrast issues with the hard coded colors.
Screenshots, screen recording, code snippet
Here are two calendar blocks in Twenty Twenty-Two using the blue style variation:
The first is placed inside a group block with a white background, to mock light colored theme backgrounds:
Custom theme with dark grey background:
Environment info
WordPress 6.0 rc2, beta tester plugin
Current Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered:
I'm interested in improving the style of the calendar block too.
I've made the following changes in try/block-calendar branch based on a table block (using the same table tag):
@t-hamano I have tried the branch. I like that it matches the table block better and that the table head background color was removed. Will you submit a PR?
Description
The hard coded colors in the calendar block does not work well on some colored backgrounds or when the theme sets the link color to a light color.
The color contrast can be too low, making the texts difficult to read.
Related: #39053
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Here are two calendar blocks in Twenty Twenty-Two using the blue style variation:
The first is placed inside a group block with a white background, to mock light colored theme backgrounds:
Custom theme with dark grey background:
Environment info
WordPress 6.0 rc2, beta tester plugin
Current Gutenberg trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: