Skip to content

Fix Divider component color prop name and values #2365

@PelayoFelgueroso

Description

@PelayoFelgueroso

Describe the bug
The Divider component accepts the following values for the color prop: lightGrey | mediumGrey | darkGrey.

However, the resulting color is not always grey, since it relies on the neutral color token. It will usually be a shade of grey, but not necessarily.

Expected behaviour
The accepted prop values should not include the word “grey” or any specific color name. Consider renaming the prop to color-weight and allowing only: light | medium | dark.

Screenshots
If applicable, add screenshots to help explain your problem.

Code Page
Image

Usage inside the component
Image

Add labels
DxcDivider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions