Skip to content

bug(AngularMaterial/BUTTON): Correct HTML Syntax #20392

Closed
@forsti0506

Description

@forsti0506

Reproduction

Steps to reproduce:

  1. Go to HTML-Code of Material Button: https://github.com/angular/components/blob/master/src/material/button/button.html
  2. There you see the syntax of a material Button which leads to div tags inside a button tag which is not a valid html structure.

Fix

Replace the 2 divs with a span for valid html
<span class="mat-button-wrapper"><ng-content></ng-content></span> <span matRipple class="mat-button-ripple" [class.mat-button-ripple-round]="isRoundButton || isIconButton" [matRippleDisabled]="_isRippleDisabled()" [matRippleCentered]="isIconButton" [matRippleTrigger]="_getHostElement()"></span> <span class="mat-button-focus-overlay"></span>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions