bug(tabs): customizable tokens background-color and foreground-color have no effect #30186
Labels
area: material/tabs
area: theming
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When trying to override tabs background and foreground colors
nothing happens.
Overridden colors take effect only when apply
backgroundColor
directive on tabs component.Moreover after applying
backgroundColor
directive customizable tokensactive-label-text-color
andactive-indicator-color
aren't being applied anymore.In this case using directive
color
on tabs component solve the problem.Reproduction
StackBlitz link: https://stackblitz.com/edit/2xvcvpsg
Steps to reproduce:
It's self-explanatory
Expected Behavior
Customizable tokens should apply regardless directives
backgroundColor
andcolor
Actual Behavior
Customizable tokens are applied only when directives
backgroundColor
andcolor
are used on tab component.Environment
Angular CLI: 19.0.4
Node: 22.11.0
Package Manager: pnpm 9.13.2
OS: linux x64
Angular: 19.0.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
@angular-devkit/architect 0.1900.4 (cli-only)
@angular-devkit/build-angular 19.0.4
@angular-devkit/core 19.0.4
@angular-devkit/schematics 19.0.4
@angular/cdk 19.0.2
@angular/cli 19.0.4
@angular/material 19.0.2
@angular/material-luxon-adapter 19.0.2
@angular/ssr 19.0.4
@schematics/angular 19.0.4
rxjs 7.8.1
typescript 5.6.3
webpack 5.97.1
zone.js 0.15.0
The text was updated successfully, but these errors were encountered: