Skip to content

Commit 9b35767

Browse files
Resolve #2941: Improve Accordion accessibility (#2946)
1 parent 3649762 commit 9b35767

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

resources/sass/core/layout.scss

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ body {
88
overflow-x: hidden;
99
}
1010

11+
a, button, .btn {
12+
&:focus-visible {
13+
outline: 2px auto #005fcc !important; /* Blue outline */
14+
}
15+
}
16+
17+
1118

1219
@include media-breakpoint-up(xl) {
1320
.aside {

resources/views/layouts/accordion.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
data-bs-target="#collapse-{{\Illuminate\Support\Str::slug($name)}}"
77
aria-expanded="{{ in_array($name, $open) ? 'true' : 'false' }}"
88
aria-controls="collapse-{{\Illuminate\Support\Str::slug($name)}}">
9-
<h6 class="btn btn-link btn-group-justified pt-2 pb-2 mb-0 pe-0 ps-0 d-flex align-items-center">
9+
<button type="button" class="btn btn-link btn-group-justified pt-2 pb-2 mb-0 pe-0 ps-0 d-flex align-items-center">
1010
<x-orchid-icon path="bs.chevron-right" class="small me-2"/> {!! $name !!}
11-
</h6>
11+
</button>
1212
</div>
1313

1414
<div id="collapse-{{\Illuminate\Support\Str::slug($name)}}"

0 commit comments

Comments
 (0)