Skip to content

docs(material/theming): update typography tables to be consistent #27206

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelfaith
Copy link

This change updates the top table in the typography guide to be consistent with what's implemented and with the table further down the page. I used the Scale Categories from M2's type documentation for the Descriptions, since the old descriptions were carry-overs from the pre-MDC version, and could be confusing / misleading in this context. It seemed appropriate to pull from the Material spec for these. The use of "Large body text" and "Medium body text" is meant to help bridge the gap to the eventual shift to M3, since those type levels equate to M3's Large and Medium body text, respectively.

I also tweaked the second table to give greater emphasis to the class names that match the typography levels when more than one class is mapped to a style. I removed mat-h5 and mat-h6 from the second table, since they were explained in the section below the table and since they don't map directly to any type levels in the Material spec, their inclusion in this table alongside headline-5/6 (with different meaning) could be confusing.

Fixes #27112

@michaelfaith michaelfaith requested a review from jelbourn as a code owner May 31, 2023 22:12
@angular-robot angular-robot bot added the area: docs Related to the documentation label May 31, 2023
This change updates the top table in the typography guide to be
consistent with what's implemented and with the table further
down the page. It also tweaks the second table to give greater emphasis
to the class names that match the typography levels when more than
one class is mapped to a style.
@michaelfaith michaelfaith force-pushed the docs/align-typography-documentation branch from f5868b4 to 0113926 Compare June 2, 2023 00:11
@michaelfaith michaelfaith changed the title docs(theming): update typography tables to be consistent docs(material/theming): update typography tables to be consistent Jun 2, 2023
@ODAncona
Copy link

watching this carefully

@josephperrott josephperrott requested a review from a team as a code owner December 18, 2024 17:40
@josephperrott josephperrott requested review from crisbeto and removed request for a team December 18, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(Typography): Default font settings on .mat-typography is body-2 instead of body-1
2 participants