Skip to content
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

flexibility: remove base from color scale & add parseToRgb #1696

Merged
merged 10 commits into from Apr 2, 2021

Conversation

EdwardIrby
Copy link
Contributor

@EdwardIrby EdwardIrby commented Mar 29, 2021

Removes base from color scale based on conversation with @sweeting
Adds new parseToRgb() to make refactoring transparentize usage easier.
resolves #1684

BREAKING CHANGE: update color.base usages to color[6]
@EdwardIrby EdwardIrby requested review from jaketrent and sweeting and removed request for jaketrent March 29, 2021 23:44
BREAKING CHANGE: switch colorsBackgroundUtility.base usage to
@EdwardIrby EdwardIrby changed the title feat(core): remove base from color scale and add parseToRgb util flexibility: remove base from color scale & add parseToRgb Mar 30, 2021
@@ -147,7 +138,7 @@ export const colorsBackgroundLight = {
}

export const colorsBackgroundUtility = {
base: '#8A99A8',
base: '138,153,168',
Copy link
Contributor

Choose a reason for hiding this comment

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

Having some values rgba()-wrapped and some with raw csv will lead to unpredictable usage of these values. I would rather do them all at once and cut over. It's already a breaking change.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only color we really need these raw values for. because of how often we combine it with transparentize. The other colors are more one offs.

@EdwardIrby EdwardIrby merged commit b5abe62 into master Apr 2, 2021
@EdwardIrby EdwardIrby deleted the refactor/colorVars branch April 2, 2021 16:03
jaketrent added a commit that referenced this pull request Apr 7, 2021
* master:
  build: publish
  fix(datepicker): closes on click outside resolves #1655 (#1700)
  tagsinput: fix scroll bar position when items/pills overflow  (#1702)
  flexibility: remove base from color scale & add parseToRgb (#1696)
  fix(searchinput): weird type bug resolved (#1698)
  feat(core): temp core util for refactoring to vanillia css (#1689)
  build: publish
  select: stop intercepting all key events (#1699)
  build: publish
  fix(storybook-addon-theme): update incorrect package name in README
  feat(storybook-addon-theme): update icon to circle
  feat(storybook-addon-theme): ability to set theme per-story
  util: polymorphic primatives (#1690)
  build: publish
  fix(select): dropdown zindex added (#1691)
  Update @pluralsight/ps-design-system-storybook-addon-theme package.json for addon-catalog
  Update @pluralsight/ps-design-system-storybook-addon-center package.json for addon-catalog
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.

flexibility: update color vars
2 participants