将Angular素材升级到版本6后的版式配置问题

是的,就是你

在将角形材料更新到版本6之后,所有标题元素(h1-h6)都没有获得正确的字体系列和字体大小。

这是我的自定义配置:

$custom-typography: mat-typography-config(
    $font-family: 'Roboto, sans-serif',
    // Large, one-off headers, usually at the top of the page.
    $display-4:     mat-typography-level(112px, 112px, 300),
    $display-3:     mat-typography-level(56px, 56px, 400),
    $display-2:     mat-typography-level(45px, 48px, 400),
    $display-1:     mat-typography-level(34px, 40px, 400),
    // h1
    $headline:      mat-typography-level(24px, 32px, 400),
    // h2
    $title:         mat-typography-level(20px, 32px, 500),
    // h3
    $subheading-2:  mat-typography-level(16px, 28px, 400),
    // h4
    $subheading-1:  mat-typography-level(15px, 24px, 400),
    // Bolder body text.
    $body-2:        mat-typography-level(14px, 24px, 500),
    // Base body text.
    $body-1:        mat-typography-level(18px, 20px, 400),
    // Smaller body and hint text.
    $caption:       mat-typography-level(12px, 20px, 400),
    // Buttons and anchors.
    $button:        mat-typography-level(18px, 14px, 300),
    // Line-height must be unit-less fraction of the font-size.
    $input:         mat-typography-level(18px, 1.2, 300)
);

@include mat-core($custom-typography);
是的,就是你

我的问题是mat-typography班级的缺失当我升级到angular 6时,我创建了一个新项目,然后我一个一个地复制了模块,修复了升级后所需的所有内容。我只是传递了index.hml文件而忘记将mat-typography添加body元素中

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

将NgRx和Angular升级到版本7后无法编译

将CentOS 6升级到7后的网络接口问题

将 Azure Function 应用升级到 Dotnet 6 后出现 ddl 不匹配问题

升级到Angular 11后的延迟加载路由问题

将 Ubuntu 升级到 20.04 后 Vim 的问题

如何将 Angular 版本从 7 升级到 8?

升级到Angular 6后构建失败

升级到Angular 6后npm安装错误

无法将 Angular 从 6 升级到 7

问题将 okd 集群从 3.6 升级到 3.7(试图将其完全升级到最新版本)

升级到16.04后libgtk的问题

从 7.6.32 升级到 8.7.29 后的问题

将pip升级到指定版本

将terraform升级到特定版本

将ubuntu升级到特定版本

将angular从4升级到6时使用angular2-jwt和AuthHttp的问题

将版本 5.6 升级到版本 5.7 后不显示 MySQL 数据库

升级到较新版本的 TypeScript 后嵌套组件的问题

“升级后,将ember-cli-inject-live-reload版本升级到1.10.0或更高版本”警告将不会消失

angular&ngrx:升级到版本8时出现问题

错误TS2304:内部版本:升级到Angular 4后找不到名称“ Iterable”

将 Python 升级到较新版本有哪些好处/问题

将eXist-db版本2升级到4.5的索引中的问题

将Ubuntu升级到版本18.04时出现问题

将mysql升级到版本8后出现Connector / J错误

将 Bootstrap 升级到版本 4 后如何让轮播再次工作?

有了ISO文件后,如何将操作系统升级到版本16

将Chrome升级到版本63后,Selenium ChromeDriver异常

将“ Stash Pullrequest Builder插件”升级到1.9版或更高版本后,缺少参数变量