-
Notifications
You must be signed in to change notification settings - Fork 114
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
UI-272 Add warning class to radial chart in stencil library Signed-of… #359
Conversation
6dab387
to
f284f7b
Compare
we are trying to move away from hsl, because the hex(1) -> hsl -> hex(2) conversion results in different hex values for (1) and (2) which makes it more difficult for the ux team to collaborate with the engineers. is there any way we could change this component to start using hex instead of hsl in this pr? |
f284f7b
to
ddb2e4c
Compare
@susanev Updated PR to replace HSL with HEX :) |
Hi Tara! Thanks for working on the issue! The proposed colors for the mini donut chart are:
Last time when we chatted in the UI team backlog grooming, we decided to add the colors for now without turning them into variables. There is a spike (#309) planned for the color palette work (#275). But I'm open to other suggestions you might have on how we implement these color changes. Thank you! :) |
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 we're removing all usages of chef-hsl
in this PR we should go ahead and remove the function definitions as well:
automate/components/chef-ui-library/stencil.config.js
Lines 22 to 31 in ec27cd4
sass({ | |
functions: { | |
'chef-hsl($hueSatLight)': function (hsl) { | |
return new sassLib.types.String(`hsl(${hsl.getValue()})`); | |
}, | |
'chef-hsla($hueSatLight, $alpha: 1)': function (hsl, alpha) { | |
return new sassLib.types.String(`hsla(${hsl.getValue()}, ${alpha.getValue()})`); | |
} | |
} | |
}) |
👍
ddb2e4c
to
fa1686c
Compare
@apriofrost I've added the new colors to be used within the chart components and updated the examples to utilize the new chart colors. I've also picked up story #275 to implement the color palette work when it's ready. |
@tarablack01 we had intended that #309 would be done before #275 so we can get an idea of the amount of engineering effort will be involved. |
…f-by: Tara Black [email protected]
🔩 Description
Add warning class to radial chart in stencil library.
👍 Definition of Done
⛓️ Related Resources
https://chefio.atlassian.net/browse/A2-792
✅ Checklist