Skip to content

Commit

Permalink
style(accordion): change heading level to 3 from 2, and change headin…
Browse files Browse the repository at this point in the history
…g font-weight as bold
  • Loading branch information
razonyang committed Feb 23, 2024
1 parent c152ba1 commit a3c267b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/bootstrap/accordion.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
{{- $show := cond (isset . "show") .show $first }}
{{- $itemID := printf "%s-%d" $id $name | anchorize }}
<div class="accordion-item">
<h2 class="accordion-header">
<h3 class="accordion-header">
<button
class="accordion-button{{ cond $show `` ` collapsed` }}"
class="accordion-button fw-bold{{ cond $show `` ` collapsed` }}"
type="button"
data-bs-toggle="collapse"
data-bs-target="#{{ $itemID }}"
{{ if $show }}aria-expanded="true"{{ end }}
aria-controls="{{ $itemID }}">
{{ .title }}
</button>
</h2>
</h3>
<div
id="{{ $itemID }}"
class="accordion-collapse collapse{{ cond $show ` show` `` }}"
Expand Down

0 comments on commit a3c267b

Please sign in to comment.