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(elevation): sharp or rounded shape #1185

Merged
merged 4 commits into from Jan 11, 2022
Merged

fix(elevation): sharp or rounded shape #1185

merged 4 commits into from Jan 11, 2022

Conversation

rachelbt
Copy link
Contributor

@rachelbt rachelbt commented Jan 2, 2022

  • Test are still needed
  • wondering regard removing border radius & background-color variables - may deprecated - thought it is still in Alfa

@github-actions
Copy link

github-actions bot commented Jan 2, 2022

🚀

Latest successful build of the PR deployed here.

🚀

@rachelbt rachelbt added the Work in Progress You're welcome to have a look around and drop your early comments label Jan 2, 2022
@rachelbt rachelbt linked an issue Jan 2, 2022 that may be closed by this pull request
@@ -1,8 +1,6 @@
@use 'sass:list';

$dps: 0 2 4 8 12 16 24;
$vvd-elevation-background-color: --vvd-elevation-background-color;
Copy link
Contributor

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

Copy link
Contributor Author

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 :)

Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Contributor Author

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 :)

Copy link
Contributor

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

Copy link
Contributor Author

@rachelbt rachelbt Jan 5, 2022

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 ;)

@rachelbt rachelbt requested a review from yinonov January 4, 2022 09:35
@yinonov
Copy link
Contributor

yinonov commented Jan 11, 2022

@rachelbt merge?

@sonarcloud
Copy link

sonarcloud bot commented Jan 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rachelbt rachelbt merged commit 545c6b2 into master Jan 11, 2022
@yinonov yinonov deleted the issue1179 branch January 11, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Work in Progress You're welcome to have a look around and drop your early comments
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[elevation] sharp & rounded shape
2 participants