Skip to content

Specify a fallback for several CSS variables #671

Closed
@pmartin35

Description

@pmartin35

When upgrading from SLDS version 2.10.1 to 2.13.7 we have started receiving the following postcss warnings. Seems like there is no fallback for a few variables within your salesforce-lightning-design-stystem.css file. Most of the other variables in that file do have fallbacks. Would it be possible to add a fallback for these 4 as well?

WARNING in ./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css (./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css)
Module Warning (from ./node_modules/postcss-loader/lib/index.js):
(Emitted value instead of an instance of Error) postcss-custom-properties: .../node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css:18311:3: variable '--sds-c-avatar-initials-text-color' is undefined and used without a fallback

WARNING in ./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css (./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css)
Module Warning (from ./node_modules/postcss-loader/lib/index.js):
(Emitted value instead of an instance of Error) postcss-custom-properties: .../node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css:2000:3: variable '--sds-c-icon-color-background' is undefined and used without a fallback

WARNING in ./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css (./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css)
Module Warning (from ./node_modules/postcss-loader/lib/index.js):
(Emitted value instead of an instance of Error) postcss-custom-properties: .../node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css:889:3: variable '--sds-c-button-shadow' is undefined and used without a fallback

WARNING in ./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css (./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css)
Module Warning (from ./node_modules/postcss-loader/lib/index.js):
(Emitted value instead of an instance of Error) postcss-custom-properties: .../node_modules/@salesforce-ux/design-system/assets/styles/salesforce-lightning-design-system.css:890:11: variable '--sds-c-button-shadow' is undefined and used without a fallback

Metadata

Metadata

Assignees

No one assigned

    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