Skip to content

bug(mdc-form-field): Label css is duplicated multiple times. #26706

@liesahead

Description

@liesahead

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

V14

Description

Even in the official (docs) page css is duplicated.

image

image

Reproduction

  1. Open demo page;
  2. Open dev tools;
  3. Check the mat-radio or mat-slide-toggle label css in inspector.

Expected Behavior

CSS shouldn't be duplicated.

Actual Behavior

CSS is duplicated.

Environment

Angular CLI: 15.1.6
Node: 18.14.0
Package Manager: yarn 3.3.0
OS: win32 x64

Angular: 15.1.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1501.6
@angular-devkit/build-angular 15.1.6
@angular-devkit/build-ng-packagr 0.1002.4
@angular-devkit/core 15.1.6
@angular-devkit/schematics 15.1.6
@angular/cli 15.1.6
@schematics/angular 15.1.6
rxjs 7.8.0
typescript 4.9.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions