Skip to content
Snippets Groups Projects
Unverified Commit de2e551f authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Correction des id d'aria-controls (#785)

parent 7a2b104f
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@
<div class="definitions">
{{- range $index, $element := .elements }}
{{ $id := printf "block-%d-element-%d" $block_index $index }}
<details id="{{$id}}" itemscope itemtype="https://schema.org/DefinedTerm">
<summary itemprop="name" aria-controls="#{{ $id }}" aria-expanded="false">{{ $element.title | safeHTML }}</summary>
<details id="{{ $id }}" itemscope itemtype="https://schema.org/DefinedTerm">
<summary itemprop="name" aria-controls="{{ $id }}" aria-expanded="false">{{ $element.title | safeHTML }}</summary>
<div itemprop="description">{{ partial "PrepareHTML" $element.description }}</div>
</details>
{{ end -}}
......
......@@ -5,7 +5,7 @@
<div class="transcription">
<details id="{{- $id -}}" class="map-transcription">
<summary aria-controls="#{{- $id -}}" aria-expanded="false">{{ i18n "commons.accessibility.map_transcription" }}</summary>
<summary aria-controls="{{- $id -}}" aria-expanded="false">{{ i18n "commons.accessibility.map_transcription" }}</summary>
<ul>
{{ range .organizations }}
{{ if .slug }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment