Skip to content

Commit

Permalink
Ensure -outline-offset-* utilities are suggested in IntelliSense (#…
Browse files Browse the repository at this point in the history
…15646)

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
  • Loading branch information
thecrypticace and RobinMalfait authored Jan 16, 2025
1 parent fe758af commit 2f8c517
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add missing `main` and `browser` fields for `@tailwindcss/browser` ([#15594](https://github.com/tailwindlabs/tailwindcss/pull/15594))
- Ensure namespace reset with escaped `*` (e.g.: `--color-\*: initial;`) ([#15603](https://github.com/tailwindlabs/tailwindcss/pull/15603))
- Resolve values in functional utilities based on `@theme` options ([#15623](https://github.com/tailwindlabs/tailwindcss/pull/15623))
- _Upgrade (experimental)_: Pretty print `--spacing(…)` to prevent ambiguity ([#15596](https://github.com/tailwindlabs/tailwindcss/pull/15596))
- Discard invalid variants such as `data-checked-[selected=1]:*` ([#15629](https://github.com/tailwindlabs/tailwindcss/pull/15629))
- Ensure `-outline-offset-*` utilities are suggested in IntelliSense ([#15646](https://github.com/tailwindlabs/tailwindcss/pull/15646))
- _Upgrade (experimental)_: Pretty print `--spacing(…)` to prevent ambiguity ([#15596](https://github.com/tailwindlabs/tailwindcss/pull/15596))

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,11 @@ exports[`getClassList 1`] = `
"-order-7",
"-order-8",
"-order-9",
"-outline-offset-0",
"-outline-offset-1",
"-outline-offset-2",
"-outline-offset-4",
"-outline-offset-8",
"-right-0",
"-right-0.5",
"-right-1",
Expand Down
1 change: 1 addition & 0 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3968,6 +3968,7 @@ export function createUtilities(theme: Theme) {

suggest('outline-offset', () => [
{
supportsNegative: true,
values: ['0', '1', '2', '4', '8'],
valueThemeKeys: ['--outline-offset'],
},
Expand Down

0 comments on commit 2f8c517

Please sign in to comment.