Skip to content

Commit 9c043a7

Browse files
authored
Make sure accordion-btn-focus-box-shadow gets applied to open accordion_panel()s (#489)
* Close #488. Make sure accordion-btn-focus-box-shadow gets applied to open accordion_panel()s * Resave distributed files (GitHub Action) * Resave data (GitHub Action) --------- Co-authored-by: cpsievert <cpsievert@users.noreply.github.com>
1 parent fe41d6d commit 9c043a7

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

R/sysdata.rda

2.24 KB
Binary file not shown.

inst/components/accordion.scss

+7
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
}
99
.accordion-button:not(.collapsed) {
1010
box-shadow: $accordion-box-shadow-active;
11+
// $accordion-box-shadow-active defaults to none, which will override
12+
// the box-shadow applied to .accordion-button:focus (and, as a result,
13+
// non-collapsed buttons won't show a visual indication of focus, #488).
14+
// So, repeat the .accordion-button:focus below to give it a higher priority.
15+
&:focus {
16+
box-shadow: var(--#{$prefix}accordion-btn-focus-box-shadow);
17+
}
1118
}
1219
}

inst/css-precompiled/5/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)