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
{{ message }}
Repository navigation
Image: add_theme_support for wide and full alignments #1724
The new alignment toolbar adds two more options for image, wide and full:
An image block with the wide option applied gets the CSS classes alignwide wp-block-image, while an image with the full option applied gets alignfull wp-block-image. But the theme itself may not have the required CSS styles to support these, and it's difficult for the block itself to provide these styles inline, as they require some architecting of the theme itself, in order to work well.
We should let themes opt in to these buttons by delaring something like add_theme_support( 'wide-images' );, and the buttons should be hidden unless the theme has opted in.
Activity
davidakennedy commentedon Jul 12, 2017
This makes sense to me. It's along the lines of what we talked about in a group discussion among the Theme Team at Automattic.
[Monorepo][base-branch] import of gutenberg-mobile (#18508)
[Monorepo][base-branch] import of gutenberg-mobile (#18508)