Skip to content

Issue is still reported after applying the quick fix #143

@SCWells72

Description

@SCWells72

The following CSS:

foo {
    color: rgb(221, 219, 218);
}

results in the recommendation from the SLDS Validator:

Consider replacing "rgb(221, 219, 218)" with an updated design token: "colorGray5": SLDS (DESIGN_TOKEN)

with quick fix:

Update token to 'colorGray5'

Applying that quick fix, the code is changed to:

foo {
    color: var(--lwc-colorGray5, rgb(221, 219, 218));
}

but the exact same recommendation and fix are again reported, and applying the fix again results in:

foo {
    color: var(--lwc-colorGray5, var(--lwc-colorGray5, rgb(221, 219, 218)));
}

This happens ad nauseum, so the only option is to accept the fix (if desired) and then suppress the reported issue via sldsValidatorIgnore or sldsValidatorIgnoreNextLine.

Let me know if that doesn't provide enough information to reproduce the described behavior.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions