Add wp-block class to all core blocks (editor and saved HTML) #28966
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
CSS using element selectors or descendant selectors can lead to specificity problems, hence the recommendation that developers prefer class names over more specific combinations of selectors.
The current lack of the
.wp-block
class name on some core blocks - for examplecore/heading
- means that these elements have to be targeted by other means, for example.c-blocks > *
.What is your proposed solution?
Ensure that every Core Block receives the class name
wp-block
in the editor and in the saved HTML.The text was updated successfully, but these errors were encountered: