Skip to content

Rename Divider color prop to colorWeight with light/medium/dark values - #2576

Open
anuj-pal27 wants to merge 1 commit into
dxc-technology:masterfrom
anuj-pal27:fix/divider-color-values
Open

anuj-pal27 wants to merge 1 commit into
dxc-technology:masterfrom
anuj-pal27:fix/divider-color-values

Conversation

@anuj-pal27

Copy link
Copy Markdown

Checklist
(Check off all the items before submitting)

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

Description
Renamed the DxcDivider color prop to colorWeight and changed its values from lightGrey | mediumGrey | darkGrey to light | medium | dark (default medium), since the color comes from neutral tokens and isn't always grey. Visual output is unchanged. Updated internal usages, stories and website docs.

Breaking change: color="darkGrey" → colorWeight="dark" (same for light/medium).

Closes #2365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Divider component color prop name and values

1 participant