Skip to content

Compose class inside media query #384

Open

Description

@tilnea

Hi,

So, I have

in variables.module.css:

@value large-spacing: 30px;

.itemSpace {
  margin-bottom: large-spacing;
}

in my component.module.css:

.section {
  margin-bottom: 15px;
}

@media screen and (min-width: 480px) {
  .section {
    composes: itemSpace from spacing;
  }
}

but on screens bigger than 480px I get

Screenshot 2022-10-28 at 08 43 47

How can I solve this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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