Skip to content

bug(mat-table): Unable to use mat-table-row-item-container-height #30906

Closed
@melroy89

Description

@melroy89

Description

As discussed earlier here: #26438 (closed)

height: unset; is done on purpose: https://github.com/angular/components/blob/204b289588106d90c991f26a50c23c80c68d4fc3/src/material/table/table.scss#L150C11-L150C16

However, why does Material 3 have tokens to allow to you change those heights: https://material.angular.io/components/table/styling..?

Like: row-item-container-height, header-container-height etc. But they will NOT work...

Reproduction

  1. Try to use:
  @include mat.table-overrides((
    header-container-height: 32px,
    row-item-container-height: 32px,
    footer-container-height: 32px
  ));
  1. You will notice it won't work at all

Expected Behavior

  • Either support these mixins like shown above.
  • Or: Remove the token support from it?

Actual Behavior

You provide style override tokens, but it's not working at all. Its very confusing.

Environment

  • Angular: 19.x
  • CDK/Material: 19.x
  • Browser(s): Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/table

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions