Skip to content

Button and toggle-button should not contain a <div> #16350

@ksag-tap

Description

@ksag-tap

Reproduction

https://stackblitz.com/edit/components-issue-utnh8w

Steps to reproduce:

  1. run stackblitz
  2. see html source

Expected Behavior

element's Permitted content is Phrasing content , according to HTML5 rule.

Actual Behavior

element by Material Button Component and Toggle Button Component includes div element (Flow content)

Environment

  • Angular:7 ~ 8
  • CDK/Material:7 ~ 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/button-togglegood first issueThis issue is a good place to start for first time contributors to the projecthelp 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