Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit ae630ba

Browse files
committed
Fix dynamic mt values
1 parent f4e6e10 commit ae630ba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/corePlugins/margin.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ module.exports = function ({ jit: { theme, addUtilities, addVariant, e } }) {
4141
addUtilities({
4242
mt: [
4343
(modifier, { theme, candidate }) => {
44-
let value = theme.margin[modifier]
44+
let value = asLength(modifier, theme['margin'])
4545

4646
if (value === undefined) {
47-
value = modifier
48-
}
49-
50-
if (modifier === '' || value === undefined) {
5147
return []
5248
}
5349

0 commit comments

Comments
 (0)