fix: 4 empty elements can disturb screen readers

<p>, <li>, <button>, <legend>, <caption>, <figcaption> and <quote> elements must not be empty because if they are, some screen readers will have difficulties interpreting their presence.

Remove these empty elements from you code or decorate them with the aria-hidden attribute so that the screen readers ignore them.
This commit is contained in:
Simon 2020-03-11 16:47:32 +01:00
parent 49f40a4128
commit d18cf92c2c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
{{ $pages := .Resources.ByType "page" }}
{{ range sort $pages "Params.weight" }}
<div class="bg{{if isset .Params "bg_colored" }} colored{{end}}">
{{ with .File }}<p id="_{{ .BaseFileName }}" class="ancre" />{{ end }}
{{ with .File }}<a id="_{{ .BaseFileName }}" class="ancre"></a>{{ end }}
<div class="container">
{{ .Content }}
</div>