Skip to content

MatCardContent selector #17487

@mina-skunk

Description

@mina-skunk

Feature Description

Give MatCardContent a selector like MatDialogContent:

selector: `[mat-dialog-content], mat-dialog-content, [matDialogContent]`,

so like:

  selector: '[mat-card-content], mat-card-content, [matCardContent]',

Use Case

So that when the content of the card's content is just a root element

<mat-card>
  <mat-card-title>My Tite</mat-card-title>
  <mat-card-content>
    <some-root-element></some-root-element>
  </mat-card-content>
</mat-card>

vs

<mat-card>
  <mat-card-title>My Tite</mat-card-title>
  <some-root-element matCardContent></some-root-element>
</mat-card>

there isn't un-necessary nesting

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions