Skip to content

Commit 2104a4e

Browse files
committed
Add support for negative prefixes in zIndex plugin
1 parent 0735e3d commit 2104a4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/zIndex.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import _ from 'lodash'
2+
import prefixNegativeModifiers from '../util/prefixNegativeModifiers'
23

34
export default function() {
4-
return function({ addUtilities, theme, variants }) {
5+
return function({ addUtilities, e, theme, variants }) {
56
const utilities = _.fromPairs(
67
_.map(theme('zIndex'), (value, modifier) => {
78
return [
8-
`.z-${modifier}`,
9+
`.${e(prefixNegativeModifiers('z', modifier))}`,
910
{
1011
'z-index': value,
1112
},

0 commit comments

Comments
 (0)