-
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
Calendar: add color block supports #43299
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ramonjd
added
[Type] Enhancement
A suggestion for improvement.
[Status] In Progress
Tracking issues with work in progress
Needs Design Feedback
Needs general design feedback.
[Block] Calendar
Affects the Calendar Block
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
labels
Aug 17, 2022
Size Change: +88 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
I missed that one, thanks for linking to it @carolinan
I'll comment over there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] Calendar
Affects the Calendar Block
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Needs Design Feedback
Needs general design feedback.
[Type] Enhancement
A suggestion for improvement.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related:
What?
Enabling full color block supports for the calendar block.
Because the gallery block has a hardcoded background color for
th
and a hardcoded color fortbody
andcaption
, this PR updates the CSS to limit these hardcoded colors where there's nohas-text
orhas-background
classes.⚠⚠⚠ Note: updating the colors with custom values doesn't work reliably.
When selecting a preset color, followed by a custom color, the block doesn't rerender.
I've pinpointed it to the use of useDebounce in the ServerSideRender component.
The debounced function is called, but it doesn't fire. I suspect that it's cancelled too early here.
Maybe there's an equality check that's failing, because if add a
_key: Math.random()
to the top level of the attributes, or as part of the GET query args via urlQueryArgs it works.The effect is easier to see if both
"color.background"
and"color.gradients"
block supports are opted into.Why?
To add the option to provide a background color to gallery blocks.
To create consistency across blocks.
How?
Adding the relevant block supports in block.json
Testing Instructions
2022-08-17.14.16.44.mp4