You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/PageLayout.mdx
+11-39Lines changed: 11 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,14 +241,14 @@ navigation container is used for.
241
241
242
242
### With `aria-label`
243
243
244
-
Using `aria-label` along with `PageLayout.Header` or `PageLayout.Footer` creates a unique label for that landmark role that can make it easier to navigate between sections of content on a page.
244
+
Using `aria-label` along with `PageLayout.Header`, `PageLayout.Content`, or `PageLayout.Footer` creates a unique label for that landmark role that can make it easier to navigate between sections of content on a page.
245
245
246
246
```jsx live
247
247
<PageLayout>
248
248
<PageLayout.Header aria-label="header">
249
249
<Placeholder label="Header" height={64} />
250
250
</PageLayout.Header>
251
-
<PageLayout.Content>
251
+
<PageLayout.Content aria-label="content">
252
252
<Placeholder label="Content" height={240} />
253
253
</PageLayout.Content>
254
254
<PageLayout.Pane>
@@ -262,15 +262,15 @@ Using `aria-label` along with `PageLayout.Header` or `PageLayout.Footer` creates
262
262
263
263
### With `aria-labelledby`
264
264
265
-
Using `aria-labelledby` along with `PageLayout.Header` or `PageLayout.Footer` creates a unique label for each landmark role by using the given `id` to associate the landmark with the content with the corresponding `id`. This is helpful when you have a visible item that visually communicates the type of content which you would like to associate to the landmark itself.
265
+
Using `aria-labelledby` along with `PageLayout.Header`, `PageLayout.Content`, or `PageLayout.Footer` creates a unique label for each landmark role by using the given `id` to associate the landmark with the content with the corresponding `id`. This is helpful when you have a visible item that visually communicates the type of content which you would like to associate to the landmark itself.
@@ -300,35 +300,15 @@ Using `aria-labelledby` along with `PageLayout.Header` or `PageLayout.Footer` cr
300
300
</PageLayout>
301
301
```
302
302
303
-
### With `<main>` landmark
304
-
305
-
```jsx live
306
-
<PageLayout>
307
-
<PageLayout.Header>
308
-
<Placeholder label="Header" height={64} />
309
-
</PageLayout.Header>
310
-
<PageLayout.Content>
311
-
<main>
312
-
<Placeholder label="Content" height={240} />
313
-
</main>
314
-
</PageLayout.Content>
315
-
<PageLayout.Pane resizable>
316
-
<Placeholder label="Pane" height={120} />
317
-
</PageLayout.Pane>
318
-
<PageLayout.Footer>
319
-
<Placeholder label="Footer" height={64} />
320
-
</PageLayout.Footer>
321
-
</PageLayout>
322
-
```
323
-
324
303
## Accessibility
325
304
326
-
The `PageLayout` component uses [landmark roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/landmark_role) for `PageLayout.Header` and `PageLayout.Footer` in order to make it easier for screen reader users to navigate between sections of the page.
305
+
The `PageLayout` component uses [landmark roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/landmark_role) for `PageLayout.Header`, `PageLayout.Content`, and `PageLayout.Footer` in order to make it easier for screen reader users to navigate between sections of the page.
Each component may be labeled through either `aria-label` or `aria-labelledby` in order to provide a unique label for the landmark. This can be helpful when there are multiple landmarks of the same type on the page.
334
314
@@ -338,14 +318,6 @@ Each component may be labeled through either `aria-label` or `aria-labelledby` i
0 commit comments