Skip to content

Commit

Permalink
fix: #1935
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jun 7, 2023
1 parent e36a17d commit 708e249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/styled/collapse.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ details.collapse summary {
@apply outline-none;
}
.collapse:has(.collapse-title:focus-visible),
.collapse:has(input[type="checkbox"]:focus-visible),
.collapse:has(input[type="radio"]:focus-visible) {
.collapse:has(> input[type="checkbox"]:focus-visible),
.collapse:has(> input[type="radio"]:focus-visible) {
@apply outline outline-2 outline-offset-2 outline-base-content;
}
.collapse-arrow .collapse-title:after {
Expand Down
4 changes: 2 additions & 2 deletions src/components/unstyled/collapse.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
.collapse:focus:not(.collapse-close) {
grid-template-rows: auto 1fr;
}
.collapse:not(.collapse-close):has(input[type="checkbox"]:checked),
.collapse:not(.collapse-close):has(input[type="radio"]:checked) {
.collapse:not(.collapse-close):has(> input[type="checkbox"]:checked),
.collapse:not(.collapse-close):has(> input[type="radio"]:checked) {
grid-template-rows: auto 1fr;
}
.collapse[open] .collapse-content,
Expand Down

0 comments on commit 708e249

Please sign in to comment.