Skip to content
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

Styling for caption text #15085

Closed
RobinRoelofsen opened this issue Apr 20, 2019 · 3 comments
Closed

Styling for caption text #15085

RobinRoelofsen opened this issue Apr 20, 2019 · 3 comments
Labels
[Block] Image Affects the Image Block [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@RobinRoelofsen
Copy link

figcaption under default images is not styled, though the editor does show styling.

The styling in the editor is perfect, so I added the editor style to my style.css for the time being:

figcaption{ color: #555d66; font-size: 13px; text-align: center; }

Would be nice if this is added as the default.

@paaljoachim
Copy link
Contributor

paaljoachim commented Apr 22, 2019

Hey Robin

Here is an issue about caption styling: #534

@RobinRoelofsen
Copy link
Author

RobinRoelofsen commented Apr 22, 2019 via email

@aduth
Copy link
Member

aduth commented Apr 22, 2019

If I understand correctly, the styles presented in the editor can be inherited directly into a theme if it opts in to the wp-block-styles theme support:

https://wordpress.org/gutenberg/handbook/designers-developers/developers/themes/theme-support/#default-block-styles

I've confirmed that this is how the specific styles from the original comment are added, by presence of the theme.css file for the image block:

@aduth aduth closed this as completed Apr 22, 2019
@aduth aduth added [Block] Image Affects the Image Block [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. labels Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

3 participants