angular / angular/components

Angular Material Typography: No ability to customize H5 and H6 levels in typography definition

未关闭
#24,892 0 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
area: theming feature P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Feature Description

Quote from https://material.angular.io/guide/typography:
_The .mat-h5 and .mat-h6 styles don't directly correspond to a specific Material Design typography level. The .mat-h5 style uses the body-1 level with the font-size scaled down by 0.83. The .mat-h6 style uses the body-1 level with the font-size scaled down by 0.67._
![Screen Shot 2022-05-06 at 11 36 41 AM](https://user-images.githubusercontent.com/22205168/167165666-675b26f9-b40f-4f18-8c23-b59be74baefe.png)

### Use Case

We have a specific typography guide to implement but have no defined styles for h5 or h6, do to it not corresponding directly to a typography level.

Are there ways to do this?

贡献指南

打开贡献指南

调研方向

从 issue 中链接的 Angular Material typography guide 开始,追踪 typography definition 如何表示 .mat-h5 和 .mat-h6 样式。在定位相关实现和测试之前,确定预期的自定义行为和 API。完成的标准是用户可以为自己的 guide 定义彼此独立的 H5 和 H6 typography styles。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
design, frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。