Skip to content

Commit b5e22ae

Browse files
committed
work in progress - updating Front-end dev docs to reflect change to Astro (accessibility)
1 parent 6069fe0 commit b5e22ae

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
description: Guidelines for Creating Accessible Sites
33
---
4+
import Tabs from "@theme/Tabs";
5+
import TabItem from "@theme/TabItem";
46

57
# Accessibility
68

@@ -102,11 +104,22 @@ The relationship is enforced by a unique "id" on the `for` attribute of the labe
102104

103105
## Skip Link
104106

105-
A skip link is required to allow assistive technologies to quickly let users navigate to main content sections. This is placed in **\_head.twig** (located at `source/_meta/_head.twig`). When focused, it becomes visible and links to the `<main>` section (also closes the site header when opened).
106-
107-
```twig
108-
<a class="skip-link" href="#main-content">Skip To Main Content</a>
109-
```
107+
<Tabs groupId="icl-versions">
108+
<TabItem value="v3.0" label="ICL Version 3+ (Astro)">
109+
A skip link is required to allow assistive technologies to quickly let users navigate to main content sections. This is placed in `Layout.astro` (located at `src/layouts/Layout.astro`) immediately after the body tag. When focused, it becomes visible, links to the `<main>` section and closes the site header when opened).
110+
111+
```twig
112+
<a class="skip-link" href="#main-content">Skip To Main Content</a>
113+
```
114+
</TabItem>
115+
<TabItem value="v2.0" label="ICL Version < 3 (Pattern Lab)">
116+
A skip link is required to allow assistive technologies to quickly let users navigate to main content sections. This is placed in `head.twig` (located at `source/_meta/_head.twig`) immediately after the body tag. When focused, it becomes visible, links to the `<main>` section and closes the site header when opened).
117+
118+
```twig
119+
<a class="skip-link" href="#main-content">Skip To Main Content</a>
120+
```
121+
</TabItem>
122+
</Tabs>
110123

111124
## Sections
112125

0 commit comments

Comments
 (0)