Skip to content

Commit c1d034f

Browse files
committed
Fix tests not passing due to opacity modified variants
1 parent 1b4b487 commit c1d034f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const pluginOptions = {}
99
const commonConfig = {
1010
theme: {
1111
screens: { sm: '640px' },
12+
opacity: {},
1213
colors: {
1314
// inherit: 'inherit',
1415
// current: 'currentColor',
@@ -102,6 +103,13 @@ test('utilities can be customized', () => {
102103
textStrokeWidth: { DEFAULT: '1px', sm: '2px', md: '4px', lg: '8px' },
103104
paintOrder: { stroke: 'stroke' }
104105
},
106+
safelist: [],
107+
content: [
108+
{ raw: String.raw`<div class="text-fill text-fill-transparent text-fill-black text-fill-white text-fill-gray"></div>` },
109+
{ raw: String.raw`<div class="text-stroke text-stroke-transparent"></div>` },
110+
{ raw: String.raw`<div class="text-stroke text-stroke-sm text-stroke-md text-stroke-lg"></div>` },
111+
{ raw: String.raw`<div class="paint-stroke"></div>` },
112+
],
105113
}
106114
const expectedCss = `
107115
.text-fill { -webkit-text-fill-color: #38b2ac }

0 commit comments

Comments
 (0)