Skip to content

Feature Request: Auto Append SLDS CSS #3

@JohnHeadIV

Description

@JohnHeadIV

Short
Since the a major use of this will be to handle work done in and around the Salesforce ecosystem, I'd like to request a way to append the slds imprort in each component.

Long
On sfdc platform, all components automatically receive access to the Salesforce Design System css. I believe this is because sfdc doesn't actually use the shadow dom, but a polyfill for it. This presents an issues in that the OSS lwc version does use shadow DOM. I'd like to style my compoents using
the slds without having to manually add the css to each component.

Work Around
For those components, that don't have css file. I update the empty.css to include a slds import( as demonstrated in the example). This works for components without css but doesn't for those that do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions