-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Package] UI/packages/ui/packages/ui[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
When using Text component from UI package with semantic rendering tags, common.css of WordPress overrides styles set by variant prop.
Example:
<Text
// eslint-disable-next-line jsx-a11y/heading-has-content -- content provided via render prop
render={ <h2 /> }
variant="heading-lg"
>
Example
</Text>Component styles for heading-lg (15px):
Ends up looking bigger in reality when in wp-admin:
The solution could be higher specificity styles, even by using a format like h2.component-class?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Package] UI/packages/ui/packages/ui[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.