Skip to content

Commit d33fbc4

Browse files
committed
Rename gap plugins to remove grid prefix, manually include old property names
1 parent d075773 commit d33fbc4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import createUtilityPlugin from '../util/createUtilityPlugin'
22

33
export default function() {
4-
return createUtilityPlugin('gridRowGap', [['row-gap', ['gridRowGap']]])
4+
return createUtilityPlugin('columnGap', [['col-gap', ['gridColumnGap', 'columnGap']]])
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import createUtilityPlugin from '../util/createUtilityPlugin'
22

33
export default function() {
4-
return createUtilityPlugin('gridGap', [['gap', ['gridGap']]])
4+
return createUtilityPlugin('gap', [['gap', ['gridGap', 'gap']]])
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import createUtilityPlugin from '../util/createUtilityPlugin'
22

33
export default function() {
4-
return createUtilityPlugin('gridColumnGap', [['col-gap', ['gridColumnGap']]])
4+
return createUtilityPlugin('rowGap', [['row-gap', ['gridRowGap', 'rowGap']]])
55
}

stubs/defaultConfig.stub.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ module.exports = {
405405
'40': '40',
406406
'50': '50',
407407
},
408-
gridGap: theme => theme('spacing'),
408+
gap: theme => theme('spacing'),
409+
rowGap: {},
410+
columnGap: {},
409411
gridTemplateColumns: {
410412
'1': 'repeat(1, minmax(0, 1fr))',
411413
'2': 'repeat(2, minmax(0, 1fr))',
@@ -420,7 +422,6 @@ module.exports = {
420422
'11': 'repeat(11, minmax(0, 1fr))',
421423
'12': 'repeat(12, minmax(0, 1fr))',
422424
},
423-
gridColumnGap: {},
424425
gridColumn: {
425426
'span-1': 'span 1 / span 1',
426427
'span-2': 'span 2 / span 2',
@@ -466,7 +467,6 @@ module.exports = {
466467
'13': '13',
467468
},
468469
gridTemplateRows: {},
469-
gridRowGap: {},
470470
gridRow: {},
471471
gridRowStart: {},
472472
gridRowEnd: {},
@@ -578,14 +578,14 @@ module.exports = {
578578
width: ['responsive'],
579579
wordBreak: ['responsive'],
580580
zIndex: ['responsive'],
581-
gridGap: ['responsive'],
581+
gap: ['responsive'],
582+
columnGap: ['responsive'],
583+
rowGap: ['responsive'],
582584
gridTemplateColumns: ['responsive'],
583-
gridColumnGap: ['responsive'],
584585
gridColumn: ['responsive'],
585586
gridColumnStart: ['responsive'],
586587
gridColumnEnd: ['responsive'],
587588
gridTemplateRows: ['responsive'],
588-
gridRowGap: ['responsive'],
589589
gridRow: ['responsive'],
590590
gridRowStart: ['responsive'],
591591
gridRowEnd: ['responsive'],

0 commit comments

Comments
 (0)