Skip to content

Commit

Permalink
Revert "Fix issue where base styles not generated for translate trans…
Browse files Browse the repository at this point in the history
…forms in JIT (#5038)"

This reverts commit a76fb7f.
  • Loading branch information
adamwathan authored Jul 23, 2021
1 parent 90da0b3 commit e969857
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
10 changes: 2 additions & 8 deletions src/plugins/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ export default function () {
if (config('mode') === 'jit') {
return createUtilityPlugin('translate', [
[
[
'translate-x',
[['@defaults transform', {}], '--tw-translate-x', ['transform', 'var(--tw-transform)']],
],
[
'translate-y',
[['@defaults transform', {}], '--tw-translate-y', ['transform', 'var(--tw-transform)']],
],
['translate-x', ['--tw-translate-x', ['transform', 'var(--tw-transform)']]],
['translate-y', ['--tw-translate-y', ['transform', 'var(--tw-transform)']]],
],
])({ config, ...rest })
} else {
Expand Down
4 changes: 0 additions & 4 deletions tests/jit/basic-usage.test.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.translate-x-5,
.-translate-x-4,
.translate-y-6,
.-translate-x-3,
.rotate-3,
.skew-y-12,
.skew-x-12,
Expand Down
4 changes: 0 additions & 4 deletions tests/jit/relative-purge-paths.test.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.translate-x-5,
.-translate-x-4,
.translate-y-6,
.-translate-x-3,
.rotate-3,
.skew-y-12,
.skew-x-12,
Expand Down

0 comments on commit e969857

Please sign in to comment.