From 1e4b3bb0f3de74af07c4c5d7b49c5ab5cb745338 Mon Sep 17 00:00:00 2001 From: Siddharth Rohan Date: Sat, 21 Dec 2024 18:49:50 +0530 Subject: [PATCH 1/3] Added aria-labels Signed-off-by: Siddharth Rohan --- src/AgreementHtml.tsx | 3 +++ src/App.tsx | 20 ++++++++++---------- src/components/Content.tsx | 16 +++++++++++++--- src/components/Footer.tsx | 27 +++++++++++++++++++++++---- src/components/FullScreenModal.tsx | 23 +++++++++++++++++++++-- src/components/Navbar.tsx | 30 +++++++++++++++--------------- src/components/SampleDropdown.tsx | 9 +++++++-- src/components/Sidebar.tsx | 10 ++++++++-- src/components/ToggleDarkMode.tsx | 3 ++- src/components/UseShare.tsx | 7 ++++++- src/utils/helpers/Errors.tsx | 11 +++++++++-- 11 files changed, 117 insertions(+), 42 deletions(-) diff --git a/src/AgreementHtml.tsx b/src/AgreementHtml.tsx index 42c8b2b..7c5cd4f 100644 --- a/src/AgreementHtml.tsx +++ b/src/AgreementHtml.tsx @@ -19,6 +19,7 @@ function AgreementHtml({ loading }: { loading: any }) { display: "flex", flexDirection: "column", }} + aria-label="Agreement preview container" // Added aria-label for the main container >

Preview Output

@@ -41,6 +42,7 @@ function AgreementHtml({ loading }: { loading: any }) { } /> @@ -50,6 +52,7 @@ function AgreementHtml({ loading }: { loading: any }) { className="agreement" dangerouslySetInnerHTML={{ __html: agreementHtml }} style={{ flex: 1, color: textColor, backgroundColor: backgroundColor }} + aria-label="Agreement content preview" // Added aria-label for the agreement content /> )}
diff --git a/src/App.tsx b/src/App.tsx index 22d5a39..593a391 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,7 +36,6 @@ const App = () => { } }; - const onChange = (key: string | string[]) => { setActivePanel(key); }; @@ -104,7 +103,7 @@ const App = () => { return ( - + { gap: "10px", }} > - - + + - +
{ defaultActiveKey={activePanel} onChange={onChange} items={panels} + aria-label="Collapse panels for templates and model" /> @@ -158,11 +158,11 @@ const App = () => { }} >
- - + +
- + @@ -181,7 +181,6 @@ const App = () => { path="module2" element={} /> - } @@ -189,7 +188,7 @@ const App = () => {
-