Skip to content

Ensure CSS before a layer stays unlayered#14596

Merged
RobinMalfait merged 2 commits into
nextfrom
fix/layer-without-name
Oct 4, 2024
Merged

Ensure CSS before a layer stays unlayered#14596
RobinMalfait merged 2 commits into
nextfrom
fix/layer-without-name

Conversation

@RobinMalfait

Copy link
Copy Markdown
Member

This PR fixes an issue where CSS that existed before a layer:

.foo {
  color: red;
}

@layer components {
  .bar {
    color: blue;
  }
}

Was turned into an @layer without a name:

@layer {
  .foo {
    color: red;
  }
}

@utility bar {
  color: blue;
}

But in this case, it should stay as-is:

.foo {
  color: red;
}

@utility bar {
  color: blue;
}

@RobinMalfait RobinMalfait merged commit e3764ac into next Oct 4, 2024
@RobinMalfait RobinMalfait deleted the fix/layer-without-name branch October 4, 2024 10:47
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

Successfully merging this pull request may close these issues.

2 participants