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

Commit 6fa76ee

Browse files
committed
Fix z-index bug, context clean up bug
1 parent 96850da commit 6fa76ee

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/corePlugins/zIndex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { asValue } = require('../pluginUtils')
44
module.exports = function ({ matchUtilities, jit: { theme } }) {
55
matchUtilities({
66
z: (modifier, { theme }) => {
7-
let value = asValue(modifier, theme.scale)
7+
let value = asValue(modifier, theme.zIndex)
88

99
if (value === undefined) {
1010
return []

src/lib/generateRules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const postcss = require('postcss')
22
const { default: parseObjectStyles } = require('tailwindcss/lib/util/parseObjectStyles')
3+
const { transformAllSelectors } = require('../pluginUtils')
34
const { toPostCssNode, isPlainObject } = require('./utils')
45

56
// Generate match permutations for a class candidate, like:

src/lib/setupContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ function setupContext(configOrPath) {
600600
if (contextMap.has(sourcePath)) {
601601
let oldContext = contextMap.get(sourcePath)
602602
if (contextSourcesMap.has(oldContext)) {
603-
contextSourcesMap.get(oldContext).remove(sourcePath)
603+
contextSourcesMap.get(oldContext).delete(sourcePath)
604604
if (contextSourcesMap.get(oldContext).size === 0) {
605605
contextSourcesMap.delete(oldContext)
606606
cleanupContext(oldContext)

0 commit comments

Comments
 (0)