Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Update color names and descriptions #96

Merged
merged 3 commits into from
Feb 6, 2020
Merged

Conversation

sarahill
Copy link
Contributor

@sarahill sarahill commented Feb 5, 2020

Updates to color names and descriptions

Changes

What: Drop action from the icon interaction states
Why: Action is implicit in this case and not needed in the name
iconActionHovered -> iconHovered
iconActionPressed -> iconPressed

What: Drop action from the interaction states
Why: Action is repetitive in the naming. Designers found this naming convention confusing and made them wonder if there were actions that aren't interactive 🤔
actionInteractive -> interactive
actionInteractiveDisabled -> interactiveDisabled
actionInteractiveHovered -> interactionHovered
actionInteractivePressed -> interactionPressed

What: Add surface to the naming
Why: Follows the naming structure of leading with the element
primarySelected -> surfacePrimarySelected
primarySelected -> surfacePrimarySelectedHovered
primarySelected -> surfacePrimarySelectedPressed

What: Change link to interactive
Why: Follows the naming structure of interactive and allows us to map to the same components with an error state (critical links, selected checkboxes in an error state)
linkCritical -> interactiveCritical
linkCriticalDisabled -> interactiveCriticalDisabled
linkCriticalHovered -> interactiveCriticalHovered
linkCriticalPressed -> interactiveCriticalPressed

What: remove secondary from icon, iconHovered, and iconPressed, text, textSubdued, textDisabled descriptions
Why: Secondary is describing the color and not the purpose here. These are the default or primary colors for text and icons.

• updated description of interactive
• remove actionInteractiveSubdued -> not being used in Polaris-react or Figma
• updated description of surfaceSelected examples to reference actionList instead of optionList
• Updated the description for interactiveCritical

@kaelig kaelig temporarily deployed to polaris-toke-next-color-dmgj5k February 5, 2020 01:58 Inactive
@sarahill sarahill changed the base branch from master to next February 5, 2020 01:59
@sarahill sarahill changed the title [WIP] Color system naming updates [WIP] Update color names and descriptions Feb 5, 2020
@kaelig kaelig temporarily deployed to polaris-toke-next-color-dmgj5k February 6, 2020 14:19 Inactive
@kaelig kaelig temporarily deployed to polaris-toke-next-color-dmgj5k February 6, 2020 17:05 Inactive
@danrosenthal danrosenthal changed the title [WIP] Update color names and descriptions Update color names and descriptions Feb 6, 2020
@danrosenthal danrosenthal merged commit 6dd6098 into next Feb 6, 2020
@danrosenthal danrosenthal deleted the next-color-updates branch February 6, 2020 17:11
danrosenthal added a commit that referenced this pull request Feb 20, 2020
  * Added surface disabled variant and updated other variant configs ([#101](#101))
  * Added TypeScript build for modern tokens, and shifted directory structures to differentiate between legacy and modern tokens ([#97](#97))
  * Updated variant names and descriptions ([#96](#96))
  * Added decorative icon variants ([#94](#94))
  * Built changes from previous release, and added textOnInteractive variant ([#93](#93))
  * Fixed an issue where legacy themes caused the color factory to throw ([#92](#92))
  * Update color variants for consistency with changes in Polaris React ([#91](#91))
  * Marked the config as optional and the colors as partial ([dd3d8fc](https://github.com/Shopify/polaris-tokens/commit/
  * Actually exporting the types would be helpful ([4998856](4998856))
  * Added the Color Factory. Long live the Color Factory! ([#89](#89))

Co-authored-by: Dan Rosenthal <dan.rosenthal@shopify.com>
Co-authored-by: Ben Scott <227292+BPScott@users.noreply.github.com>
Co-authored-by: Kyle Durand <kyle.durand@shopify.com>
Co-authored-by: Sara Hill <sara.hill@shopify.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants