From 2104a4e006620e4bacb5463f866132c1631d612a Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 26 Apr 2019 08:57:55 -0400 Subject: [PATCH] Add support for negative prefixes in zIndex plugin --- src/plugins/zIndex.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/zIndex.js b/src/plugins/zIndex.js index 0d049677f..479463865 100644 --- a/src/plugins/zIndex.js +++ b/src/plugins/zIndex.js @@ -1,11 +1,12 @@ import _ from 'lodash' +import prefixNegativeModifiers from '../util/prefixNegativeModifiers' export default function() { - return function({ addUtilities, theme, variants }) { + return function({ addUtilities, e, theme, variants }) { const utilities = _.fromPairs( _.map(theme('zIndex'), (value, modifier) => { return [ - `.z-${modifier}`, + `.${e(prefixNegativeModifiers('z', modifier))}`, { 'z-index': value, },