Skip to content

Commit a7c07d8

Browse files
Merge branch 'main' into fix/dont-swallow-utilities-when-apply-used-in-nested-lists
2 parents 3291383 + b0aa20c commit a7c07d8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- Ensure `not-*` does not remove `:is(…)` from variants ([#16825](https://github.com/tailwindlabs/tailwindcss/pull/16825))
2222
- Ensure `@keyframes` are correctly emitted when using a prefixed setup ([#16850](https://github.com/tailwindlabs/tailwindcss/pull/16850))
2323
- Don't swallow `@utility` declarations when `@apply` is used in nested rules ([#16940](https://github.com/tailwindlabs/tailwindcss/pull/16940))
24+
- Ensure `outline-hidden` behaves like `outline-none` in non-`forced-colors` mode ([#](https://github.com/tailwindlabs/tailwindcss/pull/))
2425

2526
## [4.0.9] - 2025-02-25
2627

packages/tailwindcss/src/utilities.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14623,6 +14623,7 @@ test('outline', async () => {
1462314623
}
1462414624
1462514625
.outline-hidden {
14626+
--tw-outline-style: none;
1462614627
outline-style: none;
1462714628
}
1462814629

packages/tailwindcss/src/utilities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,6 +3901,7 @@ export function createUtilities(theme: Theme) {
39013901

39023902
utilities.static('outline-hidden', () => {
39033903
return [
3904+
decl('--tw-outline-style', 'none'),
39043905
decl('outline-style', 'none'),
39053906
atRule('@media', '(forced-colors: active)', [
39063907
decl('outline', '2px solid transparent'),

0 commit comments

Comments
 (0)