Commit 21e36bb
authored
Remove role="main" to ensure 'NPM Docs' page contains only one main landmark (#1354)
<!-- What / Why -->
This pull request removes the `role="main"` attribute from the
`PageElement` component in the `src/page.js` file to ensure there is
only one main landmark on the 'NPM Docs' page.
## Before
<img width="1725" alt="NPM Docs page with more than one main landmark"
src="https://github.com/user-attachments/assets/dd397661-24a0-489b-813e-638e028c6242">
## After
<img width="1711" alt="NPM Docs page with only one main landmark"
src="https://github.com/user-attachments/assets/86d300a1-d11c-4f0d-80e1-781566b5c106">
## References
- github/accessibility-audits#92121 parent 293ef85 commit 21e36bb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments