Commit 5ea4069
authored
[Fix accessibility] severity 4 Issues (#1352)
## WHAT
This pull request includes a few changes to the
`src/components/site-title.js` and `src/layout.js` files to improve the
layout and structure of the components.
Layout improvements:
*
[`src/layout.js`](diffhunk://#diff-a6d4de2cc6c8127b7cbdf668554367b396b50bea26c46bb805d3bc4d43108994L42-L50):
Reordered the `TableOfContents.Desktop` component to be placed after the
`Container` component and removed the `flexDirection: 'row-reverse'`
style.
[[1]](diffhunk://#diff-a6d4de2cc6c8127b7cbdf668554367b396b50bea26c46bb805d3bc4d43108994L42-L50)
[[2]](diffhunk://#diff-a6d4de2cc6c8127b7cbdf668554367b396b50bea26c46bb805d3bc4d43108994R61)
Code cleanup:
*
[`src/components/site-title.js`](diffhunk://#diff-c25bc0f69ad33508e676865af1c416298095475f259f0a06c386d0b5d9e4b294L7-R7):
Removed the redundant `role="banner"` attribute from the `Box`
component.
## BEFORE & AFTER
<img width="375" alt="image"
src="https://github.com/user-attachments/assets/b9b7c958-3b52-44f8-abd7-5938c909f48e">
<img width="375" alt="image"
src="https://github.com/user-attachments/assets/d6093bf3-8ccb-4abe-a828-c7be5443bd79">1 parent 21e36bb commit 5ea4069
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
0 commit comments