-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styles: audit utility classes generated on the frontend #41993
Comments
An issue that raises the possibility for |
One of the ideas in #39336 from @cbirdsong is to use |
This list is missing |
Closing as stale. The list needs refreshing. We can return when there's progress on classnames |
Is there an out of the box standard for things like 'is-vertical'? just a utility css for all the flex layouts |
I noticed there is a <div class="wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-1 wp-block-group-is-layout-flex">
<p>Test</p>
</div> But it doesn't have any corresponding CSS. Looks like the classname is there for backwards compatibility: gutenberg/lib/block-supports/layout.php Line 746 in 8dc36f6
|
I used this as a jumping off point for a discussion: |
For auditing and to kick off a discussion, here is a (probably incomplete) list of styles Gutenberg generates for frontend code:
is-${ orientation }
is-content-justification-${ justification }
is-nowrap
is-layout-${ layout }
flowconstrainedhas-background
has-${ preset }-background-color
has-${ preset }-gradient-background
has-border-color
has-${ preset }-border-color
has-${ preset }-font-size
has-${ preset }-font-family
has-text-color
has-${ preset }-color
has-text-align-${ alignment }
has-inline-color
has-${ spacing }-spacing-size
has-icon
wp-elements-${ unique_id } ${ element_tag }
wp-container-${ unique_id }
wp-duotone-${ filter_id } img
wp-block-${ block_name }
core/
prefixwp-site-blocks
wp-element-caption
wp-element-button
cc @apeatling @mtias
The text was updated successfully, but these errors were encountered: