mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Remove deprecated gap utilities
This commit is contained in:
parent
31814d6edf
commit
4959a99f77
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,6 @@ import log from './util/log'
|
||||
|
||||
const featureFlags = {
|
||||
future: [
|
||||
'removeDeprecatedGapUtilities',
|
||||
'purgeLayersByDefault',
|
||||
'defaultLineHeights',
|
||||
'standardFontWeights',
|
||||
|
||||
@ -1,22 +1,9 @@
|
||||
import createUtilityPlugin from '../util/createUtilityPlugin'
|
||||
import { flagEnabled } from '../featureFlags'
|
||||
|
||||
export default function () {
|
||||
return function ({ config, ...args }) {
|
||||
if (flagEnabled(config(), 'removeDeprecatedGapUtilities')) {
|
||||
createUtilityPlugin('gap', [
|
||||
['gap', ['gridGap', 'gap']],
|
||||
['gap-x', ['gridColumnGap', 'columnGap']],
|
||||
['gap-y', ['gridRowGap', 'rowGap']],
|
||||
])({ config, ...args })
|
||||
} else {
|
||||
createUtilityPlugin('gap', [
|
||||
['gap', ['gridGap', 'gap']],
|
||||
['col-gap', ['gridColumnGap', 'columnGap']],
|
||||
['gap-x', ['gridColumnGap', 'columnGap']],
|
||||
['row-gap', ['gridRowGap', 'rowGap']],
|
||||
['gap-y', ['gridRowGap', 'rowGap']],
|
||||
])({ config, ...args })
|
||||
}
|
||||
}
|
||||
return createUtilityPlugin('gap', [
|
||||
['gap', ['gridGap', 'gap']],
|
||||
['gap-x', ['gridColumnGap', 'columnGap']],
|
||||
['gap-y', ['gridRowGap', 'rowGap']],
|
||||
])
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user