Skip to content

bug(mat-table): Wrong row height for flex #26438

Closed
@angelaki

Description

@angelaki

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I'm just checking the new MDC guidline / changelog and was wondering why in the demo the new row height (52px) was missing for the flex table.

This is because the height is reset here https://github.com/angular/components/blob/main/src/material/table/_table-flex-styles.scss#L3 to (the old) 48px but if I'm not mistaken the value needs to be 52px (or gets picked from the original style)?

Btw. the same is for padding. The flex table overrides the expected default values from MDC.

Reproduction

Flex-Table of the example does not have the new height:

https://material.angular.io/components/table/examples#table-flex-basic

Expected Behavior

Using flex / html table should not make a difference in row height?

Actual Behavior

Flex / Html table differ in row height ...?

Environment

  • Angular: 15.0.3
  • CDK/Material: 15.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions