components icon indicating copy to clipboard operation
components copied to clipboard

fix(cdk/accordion): replace hardcoded colors with theme tokens

Open BHUVANSH855 opened this issue 5 months ago • 0 comments

Description

Replaces hardcoded colors in the CDK accordion overview example with Material theme tokens.

Changes

  • Replace #ccc with --mat-sys-outline-variant for accordion item borders
  • Replace #999 with --mat-sys-on-surface-variant for description text
  • Replace #eee with --mat-sys-surface-container for hover state styling

Motivation

The example used fixed color values that do not adapt to the active theme. Using Material theme tokens improves consistency across light and dark themes while preserving the existing appearance and behavior.

BHUVANSH855 avatar Jun 13 '26 07:06 BHUVANSH855