Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
107 stars 7 forks source link

Heading does no apply the css correctly #610

Closed capJuan closed 2 months ago

capJuan commented 3 months ago

Describe the bug Having 2 headings , one level 1 and another level 4 , the colour css setting for level 1 is also apply to the heading level 4

To Reproduce Steps to reproduce the behavior:

  1. create a page with 2 headings one level 1 and one level 4
  2. set css for both using tokens --dcx-color-text-heading-level_1 and --dcx-color-text-heading-level_4 different colours
  3. render the page ( level 1 colour is applied to both headdings ( ignoring the level 4 color csss)

Expected behavior the heading should render using different colour as css

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

daniele-zurico commented 2 months ago

closed by https://github.com/Capgemini/dcx-react-library/pull/620