WordPress/wp-includes/block-supports
Sergey Biryukov f4df4293b4 Editor: Add utility classnames back to blocks that have layout attributes specified.
[https://github.com/WordPress/gutenberg/issues/38719 In 5.9 these utility classnames were removed], which removed the ability for theme/plugin authors to assign their own custom CSS related to specific layout selections. This was mostly related to the Button block.

This commit adds these classes dynamically based on attributes, rather than saving them to the serialized content.

Original PR from Gutenberg repository:
* [https://github.com/WordPress/gutenberg/pull/41487 #41487 Add utility classnames back to blocks that have layout attributes specified]

Props glendaviesnz, peterwilsoncc, andrewserong, zieladam, matveb, samikeijonen.
Merges [53568] to the 6.0 branch.
See #56058.
Built from https://develop.svn.wordpress.org/branches/6.0@53569


git-svn-id: http://core.svn.wordpress.org/branches/6.0@53158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-23 23:11:10 +00:00
..
align.php Docs: Miscellaneous Docblock corrections in several `/block-supports` files. 2021-12-01 23:16:04 +00:00
border.php Code Modernization: Rename parameters that use reserved keywords in `wp-includes/block-supports/border.php`. 2022-04-21 21:05:11 +00:00
colors.php Editor: Backport block support changes from the Gutenberg plugin 2022-04-05 12:08:02 +00:00
custom-classname.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
dimensions.php Editor: Backport block support changes from the Gutenberg plugin 2022-04-05 12:08:02 +00:00
duotone.php Editor: Use `wp_unique_id()` instead of `uniqid()` to generate CSS class names. 2022-03-29 13:06:07 +00:00
elements.php Editor: Fix styles for nested elements (link color) 2022-04-25 16:37:08 +00:00
generated-classname.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
layout.php Editor: Add utility classnames back to blocks that have layout attributes specified. 2022-06-23 23:11:10 +00:00
spacing.php Editor: Backport block support changes from the Gutenberg plugin 2022-04-05 12:08:02 +00:00
typography.php Editor: Backport block support changes from the Gutenberg plugin 2022-04-05 12:08:02 +00:00
utils.php Editor: Backport block support changes from the Gutenberg plugin 2022-04-05 12:08:02 +00:00