Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumb - Design System #683

Open
jgonza16 opened this issue Aug 14, 2024 · 0 comments
Open

Breadcrumb - Design System #683

jgonza16 opened this issue Aug 14, 2024 · 0 comments

Comments

@jgonza16
Copy link
Collaborator

jgonza16 commented Aug 14, 2024

Breadcrumb - Design System

1 - Prerequisites

  • Host element will have the .dcx-breadcrumb class name.
  • It will have sub-element with the .dcx-breadcrumb-item class name.
  • It will have sub-element with the .dcx-breadcrumb-item--selected class name when the item is selected.

2 - Overview

2.1 - Possible states

Name Description
Default Instance without selected prop or falsy value
Selected Instance with selected prop and true value

2.2 - Variants

  • NONE

2.3 - Structure

  • Breadcrumb
Element Description  Token Name
Box The breadcrumb ol container itself breadcrumb
  • BreadcrumbItem
    Element Description  Token Name
    Box The container li item box breadcrumb_item

2.4 - Tokens definition

Considerations:

  • ❗ Take a close look to the Card component. It is a form element as well, the tokens and styling approach should be similar.
  • Add the tokens to src/design-system/tokens.json
  • Define all styles in src/design-system/card.css
  • Add import to the new CSS file in src/design-system/index.css

Possible tokens:

  • spacing-x-breadcrumb
  • border-color-breadcrumb
  • spacing-y-breadcrumb_item
  • spacing-x-breadcrumb
  • border-width-breadcrumb
  • etc.

Follow the naming pattern

3 - Storybook

Create the pages for:

  • Playground
  • Default
  • AccessibleTheme
  • DarkTheme
  • MaterialTheme

On each MDX page make examples for each possible variant

4 - Initial setup

Please follow these steps to create your branch:

git checkout release/1.1.0
git pull
git checkout -b 'feature/breadcrumb-design-system'
@jgonza16 jgonza16 changed the title Breadcrumb - Design System [PLACEHOLDER-TICKET] Breadcrumb - Design System Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant