Add missing wp-block classes to all Gutenberg blocks #32184
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Type] Discussion
For issues that are high-level and not yet ready to implement.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Gutenberg blocks are parsed with classes likes this:
<div class="wp-block-columns">...</div>
Those classes are a good starting point to provide CSS style through themes etc.
Some blocks don't get those classes like the list block:
<ul><li>...</li></ul>
(same for OLs etc.)This makes it harder to style those blocks without accidently overwriting other stuff, like
accordion plugins which parse their stuff sometimes as an UL-list etc.
What is your proposed solution?
Add wp-block-classes to all Gutenberg blocks to have consistent block output markup:
<ul class="wp-block-list"><li class="wp-block-list-item"></li></ul>
The text was updated successfully, but these errors were encountered: