feat(material/core): add mixins for Material Design typography#32959
feat(material/core): add mixins for Material Design typography#32959andrewseguin merged 1 commit intoangular:mainfrom
Conversation
|
Deployed dev-app for 8d3ba6c to: https://ng-dev-previews-comp--pr-angular-components-32959-dev-w27na8v1.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
|
Deployed docs-preview for 8d3ba6c to: https://ng-dev-previews-comp--pr-angular-components-32959-docs-9y7jc320.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Angular provides CSS system variables for Material typography, but the variable for "font" is not able to set letter-spacing, which requires users to remember to set letter-spacing separately:
This change introduces typography mixins that ensure that both properties are set together, so the above snippet becomes:
End-users can apply these mixins from the
mat.entrypoint with atypography-prefix: