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

fix(tokens): NO-JIRA incorrect hsl for reference tokens #516

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

braddialpad
Copy link
Contributor

fix(tokens): NO-JIRA incorrect hsl for reference tokens

Obligatory GIF (super important!)

Obligatory GIF

🛠️ Type Of Change

These types will increment the version number on release:

  • Fix

📖 Description

Fixing a problem Julio noticed where referenced tokens were not correctly generating HSL colors because a string like var(--dt-color-foreground-critical-strong-inverted); obviously doesn't contain any color information. Instead made the hsl reference its token instead of trying to generate new color data where it cannot.

Not generating HSL for gradient because it's very abnormal and I don't even think possible

Haven't really tested this much yet, will do more testing tomorrow.

Copy link

github-actions bot commented Oct 2, 2024

Please add either the visual-test-ready or no-visual-test label to this PR depending on whether you want to run visual tests or not.
It is recommended to run visual tests if your PR changes any UI. ‼️

Copy link

github-actions bot commented Oct 2, 2024

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-516/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-516/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-516/

Copy link
Collaborator

@juliodialpad juliodialpad left a comment

Choose a reason for hiding this comment

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

Nice! This seems to work as expected, thanks @braddialpad

@juliodialpad
Copy link
Collaborator

I'll merge this so I can test it on my branch

@juliodialpad juliodialpad merged commit eb4e10e into staging Oct 2, 2024
8 checks passed
@juliodialpad juliodialpad deleted the fix-hsl-reference-tokens branch October 2, 2024 18:10
juliodialpad pushed a commit that referenced this pull request Oct 7, 2024
# [9.78.0](dialtone/v9.77.0...dialtone/v9.78.0) (2024-10-07)

### Bug Fixes

* **Emoji Picker:** NO-JIRA refactor fix ref reactivity in vue2 ([#523](#523)) ([f164cad](f164cad))
* **Tokens:** NO-JIRA incorrect hsl for reference tokens ([#516](#516)) ([eb4e10e](eb4e10e))

### Features

* DLT-1915 add stylelint warning when using px or rem instead of tokens ([#509](#509)) ([77212aa](77212aa))
juliodialpad pushed a commit that referenced this pull request Oct 7, 2024
## [1.36.5](dialtone-tokens/v1.36.4...dialtone-tokens/v1.36.5) (2024-10-07)

### Bug Fixes

* **Tokens:** NO-JIRA incorrect hsl for reference tokens ([#516](#516)) ([eb4e10e](eb4e10e))
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.

2 participants