You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a variant to the typography element to change its style. This doesn't change the semantic level of the typography element so make sure to always adhere to accessible heading levels. For example, body text with a variant of h2 will appear visually as an h2 but still be body text in the DOM.
To support this best practice, we should update the Code examples to include semantic tags, like below:
What component is this related to?
Typography
Why do we need it?
The typography guidance page says:
To support this best practice, we should update the Code examples to include semantic tags, like below:
This is important, otherwise developers might end up using Typography to make headings that only visibly appear as headings.
The text was updated successfully, but these errors were encountered: