-
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
Footnotes: Add link, background and text color support #52897
Conversation
Flaky tests detected in 493c359. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5646848822
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected! However, I see some layout changes when adding background color:
Grabacion.de.pantalla.2023-07-24.a.las.19.04.54.mov
Yeah, we need to add typography, dimensions, and border controls in 6.4 😅 |
Thanks for testing!
This is the current intended behaviour when adding a background color to a block, but it can be confusing and unexpected, and there's a discussion/proposal here to improve it: #50813 |
Thanks for pointing me to that discussion, Sarah! 👀 I was sure it was unrelated, hence the ✅ |
Why aren't these controls added automatically to all blocks (with maybe an opt-out instead of opt-in)? |
As far as I'm aware, they have always been opt-in via the |
Should this PR add these controls, or would it be better to handle this separately in another PR? I'm happy to update this one if that works best. |
Since the next RC is not coming until next Wednesday, I think it's ok to merge this PR and follow up in a second one, if that's easier for you. |
Thanks @priethor, will merge this now then! |
oops. Got the RC reference above wrong. |
I agree, but the current implementation is consistent with the current settings on the Paragraph block. Perhaps that needs to change too. 🤔 |
I think that's probably fine that the paragraph block is treated a bit different. It won't always have links, where the Footnotes block will. |
I've opened a follow-up PR that adds the typography, dimensions, and border controls, and also sets text and link as the default color controls: #53044. Thanks all! |
What?
This adds link, background and text color support to the Footnotes block.
Why?
Closes #51991.
How?
Updates the Footnotes block.json file so that it includes
supports.color.link
, and also sets__experimentalDefaultControls.background
and__experimentalDefaultControls.text
to true.I added the
__experimentalDefaultControls
settings so that the three color controls had the same configuration as the paragraph block, wherebackground
andtext
are shown by default, and the user needs to click into the Color Options menu to find thelink
controls:Testing Instructions
Screenshots or screencast