-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Styles: audit utility classes generated on the frontend #41993
Copy link
Copy link
Closed
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Metadata
Metadata
Assignees
Labels
CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-nowrapis-layout-${ layout }flowconstrainedhas-backgroundhas-${ preset }-background-colorhas-${ preset }-gradient-backgroundhas-border-colorhas-${ preset }-border-colorhas-${ preset }-font-sizehas-${ preset }-font-familyhas-text-colorhas-${ preset }-colorhas-text-align-${ alignment }has-inline-colorhas-${ spacing }-spacing-sizehas-iconwp-elements-${ unique_id } ${ element_tag }wp-container-${ unique_id }wp-duotone-${ filter_id } imgwp-block-${ block_name }core/prefixwp-site-blockswp-element-captionwp-element-buttoncc @apeatling @mtias