Skip to content

bug(material/table): last row border inconsistency #27731

Closed
@magentaRE

Description

@magentaRE

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

Tables with double header (column border and row border) have bottom border on the last row, but only below <th> elements. Table shown in the screenshot = Segment 1/2/3 is a columnheader, Region 1/2 is a rowheader and numbers are table data.

image

<td> elements have special CSS selector which deletes this border from the last row. Is the same rule missing for <th> elements?

image

Reproduction

Steps to reproduce:

  1. Create a table with double header - column + row header
  2. Observe last row's bottom border

Expected Behavior

Last row's bottom border is not present in both <td> and <th> elements - claimed here: https://material.angular.io/guide/mdc-migration#table

Actual Behavior

Last row border is not present in <td> elements and is present in <th> elements.

Environment

  • Angular: 16.2.0
  • CDK/Material: 16.2.0
  • Browser(s): Any
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 11 Pro

Metadata

Metadata

Assignees

No one assigned

    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