Capgemini / dcx-react-library

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

List Item - Design System #487

Closed cg-mmirca closed 10 months ago

cg-mmirca commented 1 year ago

Prerequisites

⚠️ This ticket can only be start once the ticket 453 is completed

Overview

Possible states:

Variants:

We need to define tokens for all the combinations between states and variants:

Keeping in mind we have the elements to style:

Note that the List element is not mentioned. It's a simple container element that provides semantic context. It should not have any styles, same as a DIV element.

Storybook

Create the pages for:

On each MDX page make examples for:

Token definition

Considerations:

Possible tokens:

Note that the List Element will use the body tokens. It won't be affected by the different variants. Only the marker element is affected.

Follow the naming pattern:

[token_category]-[property]-[element]-[variant]-[state]

F.e. for color-marker--ordered we have:

Please follow these steps to create your branch:

git checkout release/0.8
git pull
git checkout -b 'feature/ds-list-item'
daniele-zurico commented 1 year ago

solved by https://github.com/Capgemini/dcx-react-library/pull/495

daniele-zurico commented 1 year ago

@cg-mmirca can you please raise another ticket about list in case you need specific classes to be added?

daniele-zurico commented 10 months ago

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