From 4ef5534d41ba030e8b34e5d20996414261cb957a Mon Sep 17 00:00:00 2001 From: Pragadesh-45 <54320162+Pragadesh-45@users.noreply.github.com> Date: Mon, 23 Sep 2024 17:54:24 +0530 Subject: [PATCH] Enhancement: Accessibility issues on the Welcome page (#3173) * fix: accessibility issue in Welcome page - use button tag for collection instead of div - hide decorative image for assistive technology - give meaningful label to links in Links section * enhance: accessibility over the buttons on the welcome page * chore: fix translations --------- Co-authored-by: Shrilakshmi Shastry --- .../bruno-app/src/components/Welcome/index.js | 65 +++++++++++++------ 1 file changed, 46 insertions(+), 19 deletions(-) diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 0ec4c1245..64100224c 100644 --- a/packages/bruno-app/src/components/Welcome/index.js +++ b/packages/bruno-app/src/components/Welcome/index.js @@ -21,9 +21,7 @@ const Welcome = () => { const [importCollectionLocationModalOpen, setImportCollectionLocationModalOpen] = useState(false); const handleOpenCollection = () => { - dispatch(openCollection()).catch( - (err) => console.log(err) && toast.error(t('WELCOME.COLLECTION_OPEN_ERROR')) - ); + dispatch(openCollection()).catch((err) => console.log(err) && toast.error(t('WELCOME.COLLECTION_OPEN_ERROR'))); }; const handleImportCollection = ({ collection, translationLog }) => { @@ -64,7 +62,7 @@ const Welcome = () => { /> ) : null} -
+
bruno
@@ -72,40 +70,69 @@ const Welcome = () => {
{t('COMMON.COLLECTIONS')}
-
setCreateCollectionModalOpen(true)}> - +
-
- + + +
-
setImportCollectionModalOpen(true)}> - + + +
+
+
{t('WELCOME.LINKS')}
- - + + {t('COMMON.DOCUMENTATION')}
- - + + {t('COMMON.REPORT_ISSUES')}
- - + + {t('COMMON.GITHUB')}