Skip to content

Commit

Permalink
v11 color token updates for structured list (carbon-design-system#2339)
Browse files Browse the repository at this point in the history
* v11 color token updates for structured list

This PR updates the color tokens on the Style tab for the structured list component.

* fixed type

Co-authored-by: Anna Gonzales <anna.gonzales3@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and emyarod committed Jun 8, 2021
1 parent 315b377 commit 4a00e54
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/pages/components/structured-list/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,21 @@ tabs: ['Usage', 'Style', 'Code', 'Accessibility']

## Color

| Class | Property | Color token |
| -------------------------------------- | ------------- | ----------- |
| `.bx--structured-list-th` | text color | `$text-01` |
| `.bx--structured-list-td` | text color | `$text-02` |
| `.bx--structured-list-row--header-row` | border-bottom | `$ui-03` |
| `.bx--structured-list-row` | border-bottom | `$ui-03` |
| Class | Property | Color token |
| -------------------------------------- | ------------- | ----------------- |
| `.bx--structured-list-th` | text color | `$text-primary` |
| `.bx--structured-list-td` | text color | `$text-secondary` |
| `.bx--structured-list-row--header-row` | border-bottom | `$border-subtle` |
| `.bx--structured-list-row` | border-bottom | `$border-subtle` |

### Interactive states

| Class | Property | Color token |
| ------------------------------------ | ---------------- | -------------- |
| `.bx--structured-list-row--selected` | background-color | `$selected-ui` |
| `.bx--structured-list-svg:checked` | fill | `$ui-05` |
| `.bx--structured-list-row:hover` | background-color | `$hover-row` |
| `.bx--structured-list-svg:hover` | fill | `$ui-04` |
| `.bx--structured-list-row:focus` | border | `$focus` |
| Class | Property | Color token |
| ------------------------------------ | ---------------- | ---------------------- |
| `.bx--structured-list-row--selected` | background-color | `$background-selected` |
| `.bx--structured-list-svg:checked` | fill | `$icon-primary` |
| `.bx--structured-list-row:hover` | background-color | `$background-hover` |
| `.bx--structured-list-row:focus` | border | `$focus` |

## Typography

Expand Down

0 comments on commit 4a00e54

Please sign in to comment.