jpmorganchase / salt-ds

React UI components built with a focus on accessibility, customisation and ease-of-use
https://www.saltdesignsystem.com
Apache License 2.0
109 stars 78 forks source link

Bordered Button #3325

Open origami-z opened 2 months ago

origami-z commented 2 months ago

Added bordered option to secondary button, for both current and theme next

Keep backwards compatibility (variant), add new prop

variant new type new color
cta filled accent
primary filled neutral
secondary transparent neutral

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

origami-z commented 1 month ago

Updated est. sprint

pseys commented 1 week ago

Nomenclature

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

Tokens/Variables

This token structure will be used and extended in https://github.com/jpmorganchase/salt-ds/issues/3326

pseys commented 1 week ago
pseys commented 5 days ago

All instances of button have been updated in the Salt (Next) Components & Patterns library. The branch has been merged and is ready to publish.

pseys commented 4 days ago

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.

origami-z commented 1 day ago

My feedback from token naming meeting: