Coder Social home page Coder Social logo

salesforcedx-slds-lsp's Introduction

salesforcedx-slds-lsp's People

Contributors

ambreeen avatar billyma avatar dependabot[bot] avatar kirupa avatar sfdctaka avatar maliroteh-sf avatar doniarobinson-sf avatar jimjag avatar ryanbrainard avatar dottenpixel avatar svc-scm avatar

Stargazers

Jon Repp avatar  avatar

Watchers

Sarah Mei avatar  avatar Matt avatar James Cloos avatar  avatar John Earle avatar  avatar  avatar  avatar

salesforcedx-slds-lsp's Issues

Allow for line-ignore option

It is a common scenario that CSS classes get constructed within a JavaScript getter.

image

It would be great to have an ignore option like // slds-ignore-next-line that allows the developer to disable validation, in the sense like ESLint or Prettier allow to ignore lines.

Incorrect violation for card shadow

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.