angular / angular/components

bug(material/table): Row of sticky column is transparent on hover in custom dark theme

Open
#26,730 2 comments 3 reactions 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?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

14.2.7

### Description

![mat-table-bug](https://user-images.githubusercontent.com/37940332/223190978-6cf1b4f2-7dbe-4433-b21e-091e55bb407b.gif)

https://stackblitz.com/edit/angular-nhbxgc?file=src/app/table-sticky-columns-example.html

### Reproduction

Steps to reproduce:
1. Custom material dark theme is applied
2. In table that has a sticky column, try horizontal scrolling.
3. The hover row in the sticky column is transparent so other columns show beneath it.

### Expected Behavior

I expect the hovered row of the sticky column to not be transparent in a custom dark theme.

### Actual Behavior

The hovered row of the sticky column is transparent in a custom dark theme.

### Environment

- Angular: 15.2.1
- CDK/Material: 15.2.1
- Browser(s): Chrome, Firefox
- Operating System (e.g. Windows, macOS, Ubuntu): Windows

Contributor guide

Open the contributing guide

Research direction

Run the linked StackBlitz reproduction and start with src/app/table-sticky-columns-example.html, focusing on the sticky-column table with the custom dark theme. Reproduce the issue by horizontally scrolling and hovering a row; done means the sticky column's hovered row is opaque and no underlying columns show through in Chrome and Firefox.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.