-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(reset): fix reset specifying anchor color #7216
Conversation
Deploy preview for carbon-elements ready! Built with commit c572c43 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit c572c43 https://deploy-preview-7216--carbon-components-react.netlify.app |
✔️ Deploy preview for carbon-elements ready! 🔨 Explore the source changes: 0302891 🔍 Inspect the deploy logs: https://app.netlify.com/sites/carbon-elements/deploys/5fd15942eb244f0007cca5f9 😎 Browse the preview: https://deploy-preview-7216--carbon-elements.netlify.app |
Deploy preview for carbon-components-react ready! Built with commit 0302891 https://deploy-preview-7216--carbon-components-react.netlify.app |
@DusanMilko hello! it seems the tests are failing - you will have to run |
packages/type/scss/_reset.scss
Outdated
@@ -75,7 +75,7 @@ | |||
} | |||
|
|||
a { | |||
color: #0062ff; | |||
color: $interactive-01; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly, I think it's a hex value due to this token coming from the themes package. Since themes depends on type, if we had type depends on themes then we would have a cycle between the two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then should we remove this hard hex from the reset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DusanMilko maybe we could swing something like:
a {
@if global-variable-exists($carbon--theme) and
map-has-key($carbon--theme, 'link-01')
{
color: map-get($carbon--theme, 'link-01');
} @else {
color: #0062ff;
}
}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need to reset the color? It doesn't look like we reset any other color values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tw15egan I think you're right that we don't need to reset colors, I assume that when the default type mixin was made it was just translating over from the v9 default styles which we could totally just drop in v11 👍
Got this error: ● Validation Error: Preset jest-config-carbon not found. Configuration Documentation: |
@joshblack why is this failing? |
Hey all! Sorry for the delay over break, Reference: https://sass-lang.com/documentation/modules/meta#global-variable-exists |
Still seems to be failing |
Closes: #7206
Currently reset is setting hard hex color for anchor that is not ideal.
Color is not a token so causes issues in regards to theme