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

Incorrect violation for card shadow #38

Open
adarsh-ramakrishna-sfdc opened this issue Dec 28, 2021 · 0 comments
Open

Incorrect violation for card shadow #38

adarsh-ramakrishna-sfdc opened this issue Dec 28, 2021 · 0 comments

Comments

@adarsh-ramakrishna-sfdc

I got this violation error:
Items:

  1. Style: .section-card {box-shadow : var(--sds-c-card-shadow, var(--lwc-cardShadow, 0 2px 2px 0 rgba(0, 0, 0, 0.1)))}

Violation List:
1.1) Instead of using static value for box-shadow: var(--sds-c-card-shadow, var(--lwc-cardShadow, 0 2px 2px 0 rgba(0, 0, 0, 0.1))), consider leveraging one of the following design token:

  • var(--lwc-spacingNone, 0)

1.2) Instead of using static value for box-shadow: var(--sds-c-card-shadow, var(--lwc-cardShadow, 0 2px 2px 0 rgba(0, 0, 0, 0.1))), consider leveraging one of the following design token:

  • var(--lwc-borderWidthThick, 2px)
  • var(--lwc-spacingXxxSmall, 0.125rem)
  • var(--lwc-varSpacingXxxSmall, 0.125rem)

However, I see the same in slds card documentation in this link :
https://www.lightningdesignsystem.com/components/cards/

Box Shadow --sds-c-card-shadow--sds-c-card-shadow String 0 2px 2px 0 rgba(0, 0, 0, 0.1)
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

No branches or pull requests

1 participant