Skip to content

Commit 4d2b5a1

Browse files
committed
do not read from theme keys
1 parent 3b559e6 commit 4d2b5a1

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

packages/tailwindcss/src/utilities.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11821,10 +11821,6 @@ test('tab', async () => {
1182111821
),
1182211822
).toMatchInlineSnapshot(`
1182311823
"
11824-
:root, :host {
11825-
--tab-size-github: 8;
11826-
}
11827-
1182811824
.tab-2 {
1182911825
tab-size: 2;
1183011826
}
@@ -11840,10 +11836,6 @@ test('tab', async () => {
1184011836
.tab-\\[12px\\] {
1184111837
tab-size: 12px;
1184211838
}
11843-
11844-
.tab-github {
11845-
tab-size: var(--tab-size-github);
11846-
}
1184711839
"
1184811840
`)
1184911841
expect(

packages/tailwindcss/src/utilities.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,20 +2276,14 @@ export function createUtilities(theme: Theme) {
22762276
staticUtility('whitespace-break-spaces', [['white-space', 'break-spaces']])
22772277

22782278
functionalUtility('tab', {
2279-
themeKeys: ['--tab-size'],
22802279
handleBareValue: ({ value }) => {
22812280
if (!isPositiveInteger(value)) return null
22822281
return value
22832282
},
22842283
handle: (value) => [decl('tab-size', value)],
22852284
})
22862285

2287-
suggest('tab', () => [
2288-
{
2289-
values: ['2', '4', '8'],
2290-
valueThemeKeys: ['--tab-size'],
2291-
},
2292-
])
2286+
suggest('tab', () => [{ values: ['2', '4', '8'] }])
22932287

22942288
staticUtility('text-wrap', [['text-wrap', 'wrap']])
22952289
staticUtility('text-nowrap', [['text-wrap', 'nowrap']])

0 commit comments

Comments
 (0)