Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'composes' keyword fails #376

Open
desmond-tuiyot opened this issue Mar 25, 2022 · 0 comments
Open

The 'composes' keyword fails #376

desmond-tuiyot opened this issue Mar 25, 2022 · 0 comments

Comments

@desmond-tuiyot
Copy link

desmond-tuiyot commented Mar 25, 2022

Issue

  • When using compose, both the style that composes and the composed style seem to be duplicated and added multiple times. They end up overriding each other, and the composed style ends up being the last one added, rather than the composing style.
  • An example: Here the subheader should compose the header class and then override some of the styles from header.
    Screen Shot 2022-03-24 at 7 38 26 PM
  • However, that doesn't happen. Only the styles in header are applied. And this is what the styles look like in the devtools
    Screen Shot 2022-03-24 at 7 35 44 PM
  • As you can see, both the classes are added multiple times, and override each other. And the class that we want to override, the header class, is added last and ends up being what is applied.

Maybe Pertinent Information

  • Using a Mac M1 Mini
  • Using React 17.0.2
  • Recently switched from webpack to vite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant