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

[Feature Request] Ability to use @extend with :is #2135

Closed
ggedde opened this issue Nov 23, 2023 · 1 comment
Closed

[Feature Request] Ability to use @extend with :is #2135

ggedde opened this issue Nov 23, 2023 · 1 comment

Comments

@ggedde
Copy link

ggedde commented Nov 23, 2023

Is there a way to do this currently?
if not then I would like to request it. Maybe @extend-is, etc.

Example:

%ui {
  color: blue;
  &:hover {
    color: red
  }
}

button {
  @extend-is %ui;
}
a {
  @extend-is %ui;
}
.badge {
  @extend-is %ui;
}

Output as:

:is(button,a,.badge) {
  color: blue;
}
:is(button,a,.badge):hover {
  color: red;
}

Instead of:

button,
a,
.badge {
  color: blue;
}
button:hover,
a:hover,
.badge:hover {
  color: red;
}
@nex3
Copy link
Contributor

nex3 commented Dec 1, 2023

Duplicate of sass/sass#1136

@nex3 nex3 marked this as a duplicate of sass/sass#1136 Dec 1, 2023
@nex3 nex3 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
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

2 participants