Skip to content

Commit d2516f4

Browse files
authored
fix(docs): headings on left menu and link to design doc for a11y (#2859)
1 parent 10691ec commit d2516f4

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

site/assets/scss/_sidebar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
.bd-links-heading {
2424
color: var(--bs-emphasis-color);
2525

26+
@include media-breakpoint-down(lg) {
27+
font-size: .875rem;
28+
}
29+
2630
// Boosted mod
2731
svg {
2832
font-size: 1.5625rem;

site/layouts/_default/docs.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{ define "body_override" }}<body{{ if (eq .Page.Params.toc true) }} data-bs-spy="scroll" data-bs-target="#TableOfContents"{{ end }}>{{ end }}
22
{{ define "main" }}
33
<div class="container-xxl bd-gutter mt-3 my-md-4 bd-layout">
4-
<nav class="bd-sidebar" aria-label="Docs navigation">
4+
<nav class="bd-sidebar" aria-labelledby="docs-nav">
5+
<h1 id="docs-nav" class="visually-hidden">Docs navigation</h1>
56
<div class="offcanvas-lg offcanvas-start" tabindex="-1" id="bdSidebar" aria-labelledby="bdSidebarOffcanvasLabel">
67
<div class="offcanvas-header border-bottom">
78
<h5 class="offcanvas-title" id="bdSidebarOffcanvasLabel">Browse docs</h5>

site/layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1 class="display-1">{{ .Title | markdownify }}</h1>
2525
</div>
2626
{{ else if eq .Title "Orange Design System for web" -}}
2727
<div class="d-flex flex-column flex-sm-row">
28-
<a href="{{ .Site.Params.ods.web }}" class="btn btn-primary" aria-label="Visit Orange Design System for web at system.design.orange.com" title="Visit Orange Design System for web at system.design.orange.com" target="_blank" rel="noopener">Visit system.design.orange.com</a>
28+
<a href="{{ .Site.Params.ods.web }}" class="btn btn-primary" title="Visit system.design.orange.com" target="_blank" rel="noopener">Visit system.design.orange.com</a>
2929
</div>
3030
{{- end }}
3131
</div>

site/layouts/partials/docs-sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
{{- if $group.pages }}
1919
<li class="bd-links-group py-2">
20-
<strong class="bd-links-heading d-flex w-100 align-items-center fw-semibold">
20+
<h2 class="display-5 mb-0 bd-links-heading d-flex w-100 align-items-center fw-semibold">
2121
{{- if $group.icon }}
2222
<svg class="bi me-1"{{- if $group.icon_color }} style="color: var(--bs-{{ $group.icon_color }});"{{- end }} aria-hidden="true"><use xlink:href="#{{ $group.icon }}"></use></svg>
2323
{{- end }}
2424
{{ $group.title }}
25-
</strong>
25+
</h2>
2626

2727
<ul class="list-unstyled fw-normal mt-1 pb-2 small">
2828
{{- range $doc := $group.pages -}}

site/layouts/partials/home/orange-design-system.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2 class="mb-3 fw-semibold lh-sm">Orange Design System for web</h2>
88
Streamline your workflow and improve experience consistency with this cross-platform, scalable and inspiring design system. Designers, developers, marketers and partners, start your digital creations from the ready-to-use resources here!
99
</p>
1010
<p class="d-flex flex-column lead fw-normal mb-0">
11-
<a href="{{ .Site.Params.ods.web }}" class="icon-link icon-link-hover fw-semibold" target="_blank" rel="noopener">
11+
<a href="{{ .Site.Params.ods.web }}" class="icon-link icon-link-hover fw-semibold" target="_blank" rel="noopener" title="Visit system.design.orange.com">
1212
Visit system.design.orange.com
1313
<svg class="bi" aria-hidden="true"><use xlink:href="#arrow-right"></use></svg>
1414
</a>

0 commit comments

Comments
 (0)