Skip to content

CSS modules not being loaded when classes have hashes #5292

@VicMCA

Description

@VicMCA

Hello, in the project I'm working on we're using ComponentName.modules.css files for modular styling, with no preprocessors, and so far I've been trying to have the same work with react-select without success. Apparently it doesn't recognize classes with hashes out of the box, so the properties "className" and "classNamePrefix" haven't been working as intended.

Is there any workaround that doesn't involve using a preprocessor, the style API, applying the styles to :global (which defeats the purpose of using CSS modules in the first place) or using ComponentName.styles.css (which also defeats the purpose)? We'd like to keep using CSS modules to keep the project organization consistent for future documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions