Skip to content

Commit

Permalink
use --tw instead of --tw-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Oct 4, 2022
1 parent c3ad5dd commit ed52e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export let variantPlugins = {
}

if (!check.includes(':')) {
check = `${check}: var(--tw-empty)`
check = `${check}: var(--tw)`
}

if (!(check.startsWith('(') && check.endsWith(')'))) {
Expand Down
4 changes: 2 additions & 2 deletions tests/arbitrary-variants.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ it('should support supports', () => {
<div class="supports-[(foo:bar)or(bar:baz)]:underline"></div>
<!-- 'and' check (raw) -->
<div class="supports-[(foo:bar)and(bar:baz)]:underline"></div>
<!-- No value give for the property, defaulting to prop: var(--tw-empty) -->
<!-- No value give for the property, defaulting to prop: var(--tw) -->
<div class="supports-[container-type]:underline"></div>
<!-- Named supports usage -->
<div class="supports-grid:underline"></div>
Expand Down Expand Up @@ -699,7 +699,7 @@ it('should support supports', () => {
}
}
@supports (container-type: var(--tw-empty)) {
@supports (container-type: var(--tw)) {
.supports-\[container-type\]\:underline {
text-decoration-line: underline;
}
Expand Down

0 comments on commit ed52e05

Please sign in to comment.