Skip to content

Commit 7523a44

Browse files
committed
Add failing test for #4823
1 parent 369c7b5 commit 7523a44

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

tests/jit/apply.test.css

+7
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ h2 {
323323
padding-left: 1rem;
324324
padding-right: 1rem;
325325
}
326+
.important-modifier-variant {
327+
padding-left: 1rem;
328+
padding-right: 1rem;
329+
}
330+
.important-modifier-variant:hover {
331+
border-radius: 0.375rem !important;
332+
}
326333
@keyframes spin {
327334
to {
328335
transform: rotate(360deg);

tests/jit/apply.test.html

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<div class="use-with-other-properties-base use-with-other-properties-component"></div>
3434
<div class="add-sibling-properties"></div>
3535
<div class="important-modifier"></div>
36+
<div class="important-modifier-variant"></div>
3637
<div class="a b"></div>
3738
<div class="foo"></div>
3839
<div class="bar"></div>

tests/jit/apply.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ test('@apply', () => {
122122
.important-modifier {
123123
@apply px-4 !rounded-md;
124124
}
125+
126+
.important-modifier-variant {
127+
@apply px-4 hover:!rounded-md;
128+
}
125129
}
126130
127131
@layer utilities {

0 commit comments

Comments
 (0)