Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
melroy89 opened this issue Apr 19, 2025 · 0 comments
Open

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

melroy89 opened this issue Apr 19, 2025 · 0 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@melroy89
Copy link

melroy89 commented Apr 19, 2025

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
@melroy89 melroy89 added the needs triage This issue needs to be triaged by the team label Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant