bug(list): list item with activated state miss background color
- 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
Hi there,
When using `mat-nav-list` with items that have an activated state, the primary color is applied on the activated item but the background color is missing.
### Reproduction
https://stackblitz.com/edit/angular-aovyvr
### Expected Behavior
Having same behavior than : https://material-components.github.io/material-components-web-catalog/#/component/list
(Scroll to "List with activated item" section and click on any list item)
### Actual Behavior
Only the font color is applied
### Environment
- Angular: 15.2.6
- CDK/Material: 15.2.6
- Browser(s): Chrome 112
- Operating System (e.g. Windows, macOS, Ubuntu): Any
Contributor guide
Research direction
Start with the linked StackBlitz reproduction and inspect the mat-nav-list activated-state styling. Compare it with the linked Material Components list example, then verify that an activated item shows the expected background color as well as the primary text color.
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