Skip to content

Commit 7a5c738

Browse files
committed
Derive JIT display utilities from AOT display plugin
1 parent 49461d9 commit 7a5c738

File tree

3 files changed

+7
-27
lines changed

3 files changed

+7
-27
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Add alternate JIT engine (in preview) ([#3905](https://github.com/tailwindlabs/tailwindcss/pull/3905))
1313
- Add new `box-decoration-break` utilities ([#3911](https://github.com/tailwindlabs/tailwindcss/pull/3911))
1414
- Add new `isolation` utilities ([#3914](https://github.com/tailwindlabs/tailwindcss/pull/3914))
15+
- Add `inline-table` display utility ([#3563](https://github.com/tailwindlabs/tailwindcss/pull/3563))
1516

1617
## [2.0.4] - 2021-03-17
1718

jit/corePlugins/display.js

+1-27
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
const { createSimpleStaticUtilityPlugin } = require('../pluginUtils')
2-
3-
module.exports = [
4-
createSimpleStaticUtilityPlugin({
5-
'.block': { display: 'block' },
6-
'.inline-block': { display: 'inline-block' },
7-
'.inline': { display: 'inline' },
8-
'.flex': { display: 'flex' },
9-
'.inline-flex': { display: 'inline-flex' },
10-
'.table': { display: 'table' },
11-
'.table-caption': { display: 'table-caption' },
12-
'.table-cell': { display: 'table-cell' },
13-
'.table-column': { display: 'table-column' },
14-
'.table-column-group': { display: 'table-column-group' },
15-
'.table-footer-group': { display: 'table-footer-group' },
16-
'.table-header-group': { display: 'table-header-group' },
17-
'.table-row-group': { display: 'table-row-group' },
18-
'.table-row': { display: 'table-row' },
19-
'.flow-root': { display: 'flow-root' },
20-
'.grid': { display: 'grid' },
21-
'.inline-grid': { display: 'inline-grid' },
22-
'.contents': { display: 'contents' },
23-
}),
24-
createSimpleStaticUtilityPlugin({
25-
'.hidden': { display: 'none' },
26-
}),
27-
]
1+
module.exports = require('../../lib/plugins/display').default()

src/plugins/display.js

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export default function () {
5959
'.contents': {
6060
display: 'contents',
6161
},
62+
},
63+
variants('display')
64+
)
65+
addUtilities(
66+
{
6267
'.hidden': {
6368
display: 'none',
6469
},

0 commit comments

Comments
 (0)