Skip to content

Commit

Permalink
OMG PRETTIER WHY ARE YOU LIKE THIS
Browse files Browse the repository at this point in the history
  • Loading branch information
SallyMcGrath committed Jan 2, 2025
1 parent cbe7979 commit 3e3bcc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common-theme/layouts/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@
{{- $id := printf "%s-%d" $tab_set_id $index -}}
{{- $tabParts := split $tab "]]===" -}}
{{- $content := index $tabParts 1 -}}
<!--prettier-ignore-->
<div
id="{{ $id }}"
class="c-tabs__panel {{ if (eq $index 0) }}is-active{{- end -}}"
role="tabpanel"
aria-labelledby="tab-label-{{- $id -}}">
{{ $content| $.Page.RenderString }}
</div>
aria-labelledby="tab-label-{{- $id -}}">{{ $content| $.Page.RenderString }}</div>
{{- end -}}
{{- end -}}
</div>
Expand Down

0 comments on commit 3e3bcc2

Please sign in to comment.