angular / angular/components

bug(table): sticky cell bottom border disappear

Open
#30,753 0 comments 1 reaction 0 assignees View on GitHub
area: material/table P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### 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

mat-table cells inside sticky column can have their bottom border not showing depending on screen resolution and other cells content.

The issue seems to occurs whenever a content inside another cell is on multiple lines.

### Reproduction

StackBlitz link: https://stackblitz.com/edit/ck7hvid5-de9nrqus?file=src%2Fexample%2Ftable-sticky-columns-example.html,src%2Fexample%2Ftable-sticky-columns-example.ts

### Expected Behavior

![Image](https://github.com/user-attachments/assets/8015d96b-dd9b-45fb-bbbd-54a1d9e8628c)

### Actual Behavior

![Image](https://github.com/user-attachments/assets/85b0a304-6442-41e6-8a47-99b7a5a7623e)

### Environment

Angular CLI: 19.2.0
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 19.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router

Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1902.0
@angular-devkit/build-angular 19.2.0
@angular-devkit/core 19.2.0
@angular-devkit/schematics 19.2.0
@angular/cdk 19.2.1
@angular/material 19.2.1
@angular/material-moment-adapter 19.2.1
@schematics/angular 19.2.0
rxjs 7.4.0
typescript 5.8.2
zone.js 0.15.0

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction, especially src/example/table-sticky-columns-example.html and src/example/table-sticky-columns-example.ts, and reproduce the sticky-column table with multiline content at different screen resolutions. Trace the Angular Material table styling and rendering involved; done means sticky cells consistently show their bottom borders in the reported cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.