Skip to content

Commit 2f8c517

Browse files
Ensure -outline-offset-* utilities are suggested in IntelliSense (#15646)
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
1 parent fe758af commit 2f8c517

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Add missing `main` and `browser` fields for `@tailwindcss/browser` ([#15594](https://github.com/tailwindlabs/tailwindcss/pull/15594))
1313
- Ensure namespace reset with escaped `*` (e.g.: `--color-\*: initial;`) ([#15603](https://github.com/tailwindlabs/tailwindcss/pull/15603))
1414
- Resolve values in functional utilities based on `@theme` options ([#15623](https://github.com/tailwindlabs/tailwindcss/pull/15623))
15-
- _Upgrade (experimental)_: Pretty print `--spacing(…)` to prevent ambiguity ([#15596](https://github.com/tailwindlabs/tailwindcss/pull/15596))
1615
- Discard invalid variants such as `data-checked-[selected=1]:*` ([#15629](https://github.com/tailwindlabs/tailwindcss/pull/15629))
16+
- Ensure `-outline-offset-*` utilities are suggested in IntelliSense ([#15646](https://github.com/tailwindlabs/tailwindcss/pull/15646))
17+
- _Upgrade (experimental)_: Pretty print `--spacing(…)` to prevent ambiguity ([#15596](https://github.com/tailwindlabs/tailwindcss/pull/15596))
1718

1819
## [4.0.0-beta.9] - 2025-01-09
1920

packages/tailwindcss/src/__snapshots__/intellisense.test.ts.snap

+5
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,11 @@ exports[`getClassList 1`] = `
822822
"-order-7",
823823
"-order-8",
824824
"-order-9",
825+
"-outline-offset-0",
826+
"-outline-offset-1",
827+
"-outline-offset-2",
828+
"-outline-offset-4",
829+
"-outline-offset-8",
825830
"-right-0",
826831
"-right-0.5",
827832
"-right-1",

packages/tailwindcss/src/utilities.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3968,6 +3968,7 @@ export function createUtilities(theme: Theme) {
39683968

39693969
suggest('outline-offset', () => [
39703970
{
3971+
supportsNegative: true,
39713972
values: ['0', '1', '2', '4', '8'],
39723973
valueThemeKeys: ['--outline-offset'],
39733974
},

0 commit comments

Comments
 (0)