Skip to content

Commit b570e2b

Browse files
Don't set display: none on elements that use hidden="until-found" (#14625)
Fixes an issue reported by the React Aria Components team here: adobe/react-spectrum#7160 Basically `hidden="until-found"` behaves very differently than `hidden` and doesn't actually use `display: none`, so we don't want to apply the behavior we apply for the regular `hidden` attribute. --------- Co-authored-by: Robin Malfait <[email protected]>
1 parent ed3c535 commit b570e2b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Nothing yet!
10+
### Fixed
11+
12+
- Don't set `display: none` on elements that use `hidden="until-found"` ([#14625](https://github.com/tailwindlabs/tailwindcss/pull/14625))
1113

1214
## [3.4.13] - 2024-09-23
1315

src/css/preflight.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,6 @@ video {
381381
}
382382

383383
/* Make elements with the HTML hidden attribute stay hidden by default */
384-
[hidden] {
384+
[hidden]:where(:not([hidden="until-found"])) {
385385
display: none;
386386
}

0 commit comments

Comments
 (0)