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:
parent
49f40a4128
commit
d18cf92c2c
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue