-
Notifications
You must be signed in to change notification settings - Fork 6
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(elevation): sharp or rounded shape #1185
Conversation
rachelbt
commented
Jan 2, 2022
•
edited
Loading
edited
- Test are still needed
- wondering regard removing border radius & background-color variables - may deprecated - thought it is still in Alfa
🚀 Latest successful build of the PR deployed here. 🚀 |
@@ -1,8 +1,6 @@ | |||
@use 'sass:list'; | |||
|
|||
$dps: 0 2 4 8 12 16 24; | |||
$vvd-elevation-background-color: --vvd-elevation-background-color; |
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.
These constants prevent typos that may occur by authoring "magic strings".
Even if used in a single page, renaming a variable may leave a reference outdated. While constants will break the compilation early
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.
I removed that line anyway :)
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.
right, don't. it helps ensure we use the right css variable. rule of thumb
@@ -1,8 +1,6 @@ | |||
@use 'sass:list'; | |||
|
|||
$dps: 0 2 4 8 12 16 24; |
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.
Shouldn't this be coming from tokens automatically?
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.
not sure what you mean. This is for the sass loop :)
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.
probably not related to this PR, but the values are hardcoded here instead of being imported from style tokens
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.
That what was there - I merely added the 0 ;)
� Conflicts: � components/elevation/src/vwc-elevation.scss
@rachelbt merge? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |