Skip to content

Commit

Permalink
Don't set display: none on elements that use hidden="until-found"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adamwathan authored Oct 8, 2024
1 parent ed3c535 commit fc9db35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,6 @@ video {
}

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

0 comments on commit fc9db35

Please sign in to comment.