Skip to content

Commit

Permalink
docs(sidemenu): add visually-hidden text for not-yet available pages (#…
Browse files Browse the repository at this point in the history
…2623)

Co-authored-by: Julien Déramond <[email protected]>
  • Loading branch information
louismaximepiton and julien-deramond authored Jul 17, 2024
1 parent ef9ca58 commit 3696c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/layouts/partials/docs-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{ if eq $group_slug "migrations" }}
{{- $href = urls.JoinPath "/docs" $.Site.Params.docs_version $doc_slug "/" }}
{{ end }}
<li><a href="{{ $href }}" class="bd-links-link d-inline-block{{ if $is_active }} active{{ end }}{{if $is_draft }} text-decoration-line-through{{ end }}"{{ if $is_active }} aria-current="page"{{ end }}>{{ $doc.title }}</a></li>
<li><a href="{{ $href }}" class="bd-links-link d-inline-block{{ if $is_active }} active{{ end }}{{if $is_draft }} text-decoration-line-through{{ end }}"{{ if $is_active }} aria-current="page"{{ end }}>{{ $doc.title }}{{if $is_draft }}<span class="visually-hidden">page is not yet available</span>{{ end }}</a></li>
{{- end }}
</ul>
</li>
Expand Down

0 comments on commit 3696c26

Please sign in to comment.