-
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
Media & Text: Add caption support #67474
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: +290 B (+0.02%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
…edia-text-block-caption-support
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @bwoester, @fosterTerence, @Taruks, @AlternNO, @woodz-, @jennsuzhoy, @clarklab, @clo123, @SkipperPit, @alinekeller, @ToniSHernandez, @danwpc, @samrhein, @imsimplyellie, @gregoirenoyelle, @eriwm, @matthiasballreich, @random-pixels, @nicktrosnant, @davidoclubb, @cparkinson, @eilarva, @NolanDolce, @JohanVNR, @androos, @Fturttle. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
Thanks for working on this. I think this could do with design feedback (cc @WordPress/gutenberg-design). Some questions:
When adding media from Openverse, I believe the caption should be on by default to show the credit (I think it works this way for other media blocks already). The final thing is that theme.json caption element support will I think be needed for this, though I personally don't know much about it. |
Nice one. For the first iteration here, I'd make captions consistent with every other caption, such as those on video and image. It's close: But those other blocks come with a built in top and bottom margin, like so: We need something similar for media & text. Centering is something that a theme designer/developer should be able to do. Whether that happens through elements becoming stylable in global styles (I believe there's a separate issue tracking this), or the Caption becoming an innerblock (#54787). Though for now, I'd ensure consistency with other captions. |
Thank you for working on this @akasunil Sunil! |
What?
Closes #14604
Why?
Caption support was missing for media in
Media & Text
block.How?
Added caption support for media in
Media & Text
block.Testing Instructions
Media & Text
blockUse Featured Image
option, and verify image caption.Screenshots or screencast