Skip to content

Consistent className implementation #183

@elstoc

Description

@elstoc

All components should take an additional className to be injected into their root component.

Question: Using CSS modules, how do we ensure that the parent component's style overrides the child?

Is the only alternative for the component to take presentational props? If so, maybe a className implementation is missing the point

The composes ... from keyword can be used to combine styles if necessary. See https://developer.adobe.com/commerce/pwa-studio/guides/general-concepts/css-modules/#creating-and-composing-css-modules

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions