From 5ea40691d5526d6521a0330beef3e275ace61559 Mon Sep 17 00:00:00 2001
From: Jithin Prabhakaran Girija <141764922+jpg619@users.noreply.github.com>
Date: Wed, 6 Nov 2024 16:57:53 +0000
Subject: [PATCH] [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
---
src/components/site-title.js | 2 +-
src/layout.js | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/components/site-title.js b/src/components/site-title.js
index 400517870a9..3b12b5c1bad 100644
--- a/src/components/site-title.js
+++ b/src/components/site-title.js
@@ -4,7 +4,7 @@ import Link from './link'
import useSiteMetadata from '../hooks/use-site-metadata'
const NpmLogo = ({size, sx}) => (
-
+