Improve selectability #18846
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
Some themes add a background image or complex background or just want to format some text in page body.
Currently, I have to use this selector, preferably either as CSS preprocessor or CSS variable:
The styles are enqueued, I try to use as much frontend-styles for backend as possible:
Especially generic text elements like
<p>
,<ul>
, etc without a style variation need to be selected, too.When I just select all
<ul>
I would either select all<ul>
in WordPress backend and inspector panels, too - or nothing of them because I use a selector for the front end markup only (e.g.body:not(.wp-admin) ul
,main ul
).Describe the solution you'd like
Some attribute or class for the innermost editor wrapper so background and typographic styles can be safely and easily applied by a theme (or plugin).
Describe alternatives you've considered
The alternative I am currently using is some custom selector that may change between Gutenberg updates which requires themes to handle different DOM structures for different Gutenberg versions.
The text was updated successfully, but these errors were encountered: