Skip to content

fix(list-container): card border color should match Figma spec#1242

Closed
igor-monteiro-almeida wants to merge 1 commit into
ocean-ds:masterfrom
igor-monteiro-almeida:fix/list-container-border-color
Closed

fix(list-container): card border color should match Figma spec#1242
igor-monteiro-almeida wants to merge 1 commit into
ocean-ds:masterfrom
igor-monteiro-almeida:fix/list-container-border-color

Conversation

@igor-monteiro-almeida
Copy link
Copy Markdown
Contributor

Summary

The card variant of ListContainer currently uses $color-interface-light-deep (#CED1E1) for its border. The Figma spec for list cards specifies $color-interface-light-down (#E0E2EE), which is one step lighter. Switching the token aligns the implementation with the design source of truth across all card-style list components.

- border: $border-width-hairline solid $color-interface-light-deep;
+ border: $border-width-hairline solid $color-interface-light-down;

Affected components

ListContainer is shared, so this change visually affects every card-style consumer:

  • ListSelectable (type='card')
  • ListReadOnly (type='card')
  • ListAction, ListExpandable, ListSettings and any future component that wraps ListContainer with type='card'

The change is only the border color — width, radius, padding and content layout are unchanged.

Token values

Token Hex Note
$color-interface-light-deep (current) #CED1E1 rgb(206, 209, 225) — darker
$color-interface-light-down (Figma) #E0E2EE rgb(224, 226, 238) — lighter ✅

Test plan

  • yarn jest (ocean-react) — all suites passing, no regressions caused by this change
  • Visual regression (Storybook / Chromatic) — reviewer should compare card border before/after across all list components
  • Cross-check with Figma source: list cards in ListSelectable, ListReadOnly, ListAction

Context

Found while implementing the Highlight Corner Tag in ListSelectable (#1240). The divergence is pre-existing and not caused by that PR — opening this as a separate fix to keep concerns isolated and make the visual change reviewable in isolation.

🤖 Generated with Claude Code

The card variant of ListContainer (used by ListSelectable, ListReadOnly
and any other type='card' consumer) currently uses $color-interface-light-deep
(#CED1E1) for its border. The Figma spec for these list cards specifies
$color-interface-light-down (#E0E2EE), which is one step lighter.

Switching the token aligns the implementation with the design source of
truth across all card-style list components.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@igor-monteiro-almeida
Copy link
Copy Markdown
Contributor Author

Fechando para recriar a partir de branch direto no repo principal — assim o Chromatic publica o preview visual automaticamente (PRs de fork não conseguem usar os secrets do CI). Vou abrir um novo PR equivalente em seguida. Nada mudou no código.

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.

1 participant