Open origami-z opened 2 months ago
Updated est. sprint
Agreement to use the following terms for the new props appearance
and color
. The former will have the options solid
, outline
, and transparent
. The latter will have accent
and neutral
.
variant |
new appearance |
new color |
---|---|---|
cta | solid | accent |
outline | accent | |
transparent | accent | |
primary | solid | neutral |
outline | neutral | |
secondary | transparent | neutral |
The default setting for Button will be appearance: solid
, colour: neutral
"cat" | "primary" | "secondary"
actionable
tokens to be replaced with a more efficient reduced set of tokens.
-- content-bold-foreground
-- content-bold-foreground-disabled
-- actionable-background
-- actionable-background-hover
-- actionable-background-active
-- actionable-background-disabled
-- actionable-background-readonly
-- actionable-border
-- actionable-border-disabled
-- actionable-accent-background
-- actionable-accent-background-hover
-- actionable-accent-background-active
-- actionable-accent-background-disabled
-- actionable-accent-border
-- actionable-accent-border-disabled
-- actionable-subtle-background
-- actionable-subtle-border
This token structure will be used and extended in https://github.com/jpmorganchase/salt-ds/issues/3326
All instances of button
have been updated in the Salt (Next) Components & Patterns library. The branch has been merged and is ready to publish.
We've run into an issue where the foreground colour in legacy variables cta|primary|secondary
don't meet the required contrast ratios for AA compliance. I've recommended an alternative solution that maps for both current
and next
– awaiting agreement from the team before proceeding further.
My feedback from token naming meeting:
Added bordered option to secondary button, for both current and theme next
Keep backwards compatibility (
variant
), add new proptype
:"filled" | "bordered" | "transparent"
~ check new namescolor
:"accent" | "neutral"
(to be extended in #3326)variant
type
color
Initial design exploration: https://www.figma.com/design/DWClNw9QaYIRU9GzIdmOpQ/Salt-%26-MB-Theme-Palette-Unified-(r8)-alt-4?node-id=7526-49989&t=iSG2xTZ8enJXj5OH-1