Skip to content

ng-add: option to set up typography styles for native elements #16776

Closed
@TimoPot

Description

@TimoPot

Reproduction

Steps to reproduce:

  1. create new angular app

  2. do: ng add @angluar/material
    result:
    added 3 packages from 4 contributors in 15.766s
    UPDATE src/main.ts (391 bytes)
    UPDATE src/app/app.module.ts (577 bytes)
    UPDATE angular.json (3608 bytes)
    UPDATE src/index.html (490 bytes)
    UPDATE src/styles.css (181 bytes)

  3. notice that in index.html the fonts links are added but the body tag has no class

Expected Behavior

The schematic should add class="mat-typography" to the body tag in index.html

Actual Behavior

The schematic changes the index.html to add font links but did not change the body tag

Environment

  • Angular: 8.1.1
  • CDK/Material: 8.1.1
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixhelp wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions