Skip to content

Update to Spectrum Tokens Beta 17 #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Sep 23, 2020
Merged

Update to Spectrum Tokens Beta 17 #757

merged 59 commits into from
Sep 23, 2020

Conversation

GarthDB
Copy link
Member

@GarthDB GarthDB commented Jun 17, 2020

Description

I updated the latest Spectrum Tokens package (beta 17) and found it broke a lot of components.
Most likely it's because a bunch of deprecated tokens was deleted. I need to figure out how they were deleted.

Closes issues

Fixes #230
Fixes #517

To-do list

  • If my change impacts other components, I have tested to make sure they don't break.
  • If my change impacts documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • This pull request is ready to merge.

--spectrum-badge-error-background-color: var(--spectrum-semantic-negative-color-default);
--spectrum-badge-info-background-color: var(--spectrum-semantic-informative-color-default);
--spectrum-badge-warning-background-color: var(--spectrum-semantic-notice-color-default);
--spectrum-badge-fuchsia-l-focus-ring-border-radius-key-focus: var(--spectrum-global-dimension-size-75);
Copy link
Member

@jluyau jluyau Jun 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it required that the css variables are now a combination of color and size? Was looking at the previous label css and it looked as if there were separate variables for sizing and colors. (Asking as I'm building something for RSPv3)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this looks wrong. @GarthDB thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any updates on this? @GarthDB @lazd

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jluyau the CSS vars file has the size and color tokens. What's new in spectrum-badge file are the t-shirt sizes. T-shirt sizes are separate from scale (i.e., large, medium). We are going to see a ton of new tokens for each component that gets t-shirt sizing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @GarthDB

@GarthDB GarthDB changed the base branch from master to main July 21, 2020 17:17
@GarthDB
Copy link
Member Author

GarthDB commented Aug 20, 2020

Does it build:

  • accordion
  • actionbar
  • actiongroup
  • actionmenu
  • asset
  • assetlist
  • avatar
  • breadcrumb
  • button
  • buttongroup
  • calendar
  • card
  • checkbox
  • coachmark
  • colorarea
  • colorhandle
  • colorloupe
  • colorslider
  • colorwheel
  • cyclebutton
  • dialog
  • divider
  • dropindicator
  • dropzone
  • fieldgroup
  • fieldlabel
  • icon
  • illustratedmessage
  • inputgroup
  • label
  • link
  • menu
  • miller
  • modal
  • overlay
  • page
  • pagination
  • picker
  • popover
  • progressbar
  • progresscircle
  • quickaction
  • radio
  • rating
  • search
  • searchwithin
  • sidenav
  • site
  • slider
  • splitbutton
  • splitview
  • statuslight
  • steplist
  • stepper
  • switch
  • table
  • tabs
  • tags
  • textfield
  • thumbnail
  • toast
  • tooltip
  • tray
  • treeview
  • typography
  • underlay
  • well

GarthDB and others added 10 commits August 20, 2020 15:20
* fix: match capitalization with UI kit

* fix: change workflow icon size to medium to align with UI kit

* fix: align with Action bar UI kit

* feat: add migration guide

Co-authored-by: Jian Liao <jianliao@adobe.com>
* fix: separate dial from slider

* fix: wip fixing dial with latest tokens

* fix: closes #801, closes #818
Co-authored-by: Jian Liao <jianliao@adobe.com>
* fix: removed global and deprecated tokens, closes #806

* fix: added height to spectrum-Accordion-itemHeading
lazd and others added 20 commits September 16, 2020 12:58
* fix: make default Checkbox look correct

BREAKING CHANGE: colors change in a way that may be unexpected

docs: add docs explaining quiet/emphasized Checkbox

* docs: make Quiet/Emphasized information a Migration Guide
* fix: workflow icon size change to medium

* fix: add migration guide

Co-authored-by: Jian Liao <jianliao@adobe.com>
* build: fix renamed component names, duplicates

* docs: fix icon size in Picker, delete duplicate example

* build: fix Dropdown -> Picker naming issues, version numbers

* docs: add Picker migration guide

* docs: fix migration guide wording

* build: show "Unreleased" for renamed components instead of blank
Co-authored-by: Jian Liao <jianliao@adobe.com>
Co-authored-by: Jian Liao <jianliao@adobe.com>
* docs: added migration guide
* docs: updated migration guide for a/b switch
* fix: change pagination counter text color to match design

* fix: change to use color alias

Co-authored-by: Jian Liao <jianliao@adobe.com>
* feat: slider color variant moved to color slider, closes #850
BREAKING CHANGE: Color slider is now a separate component

* docs: Update components/slider/metadata/slider.yml

Co-authored-by: Larry Davis <lawdavis@adobe.com>
* fix: typography styles for Checkbox, fixes #243

* fix: remove Checkbox and Radio margin, fixes #124

BREAKING CHANGE: Checkbox and Radio no longer have margin on their own, must use FieldGroup

* feat: add .spectrum-Example to wrap sub-examples

* docs: show all combinations of Checkbox/Radio states, closes #707

* fix: typography styles for Radio, related to #243

* docs: put disabled last

* docs: fix Form examples, missing FieldGroup dependency

* fix: invalid Radio button text color, fixes #251

* fix: add missing color animation to Checkbox

* feat: add margin to items, require --horizontal

BREAKING CHANGE: The spectrum-FieldGroup--horizontal is now required for horizontal field groups

* feat: remove hit area from Radio/Checkbox
Spectrum tokens 17 - Textfield Textarea
* feat: tags contributd by rsp@v3

* fix: move border-radius setting to index.css

* fix: add back the margin-inline-end for the tag has icon or avatar

* fix: fix truncation example for tag and fix clear button size

* fix: remove the margin-left for clearButton

* fix: adjust the color to match design for standard tag item

* fix: implements the background for clearButton

* fix: fix some mismatch between impl and design xd

* fix: mix tag with or without icon/avatar

* fix: use dna variables for border-shadow and border-size

* fix: update dna variable for focus-ring and border-size

* Performance for focus-ring
transition box-shadow is hard, opacity is easy

* build(deps-dev): bump prismjs from 1.17.1 to 1.21.0

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.17.1 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.17.1...v1.21.0)

Signed-off-by: dependabot[bot] <support@github.com>

* fix: fix the issues caused by component rename (#778)

* fix: fix the issues caused by component rename

* fix: fix package security vulnerabilities

Co-authored-by: Jian Liao <jianliao@adobe.com>

* test: update VRT instruction documentation (#772)

* test: update VRT instruction documentation

* docs: fixed typo

Co-authored-by: Jian Liao <jianliao@adobe.com>
Co-authored-by: Garth Braithwaite <garthdb@gmail.com>

* fix: high contrast mode for checkboxes. (#791)

partly resolves #786

This will not work in IE11 or with our legacy build. It must support CSS vars.

Co-authored-by: Milan Brkic <milan.brkic1@yahoo.com>
Co-authored-by: Jian Liao <jianliao@adobe.com>
Co-authored-by: Rob Snow <rsnow@adobe.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jian Liao <jianliao@users.noreply.github.com>
Co-authored-by: Aaron <misterbrownlee@users.noreply.github.com>
Co-authored-by: James Nurthen <jnurthen@users.noreply.github.com>
@GarthDB GarthDB marked this pull request as ready for review September 22, 2020 22:39
@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@adobe-spectrum-bot
Copy link
Collaborator

Spectrum CSS documentation build successfully! 🎉

View the documentation

@adobe-spectrum-bot
Copy link
Collaborator

VRT successfully! 🎊

View the VRT result

@GarthDB GarthDB merged commit 390ed13 into main Sep 23, 2020
@GarthDB GarthDB deleted the spectrum-tokens-17 branch September 23, 2020 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants