From 12c99575b731980fe8d61603cceaad23ba86f730 Mon Sep 17 00:00:00 2001 From: Shrilakshmi Shastry Date: Sat, 23 Mar 2024 10:41:52 +0530 Subject: [PATCH 1/3] 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 --- .../bruno-app/src/components/Welcome/index.js | 40 ++++++++++++------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 251d0a9fe3..071d08e9b1 100644 --- a/packages/bruno-app/src/components/Welcome/index.js +++ b/packages/bruno-app/src/components/Welcome/index.js @@ -50,7 +50,7 @@ const Welcome = () => { /> ) : null} -
+
bruno
@@ -58,41 +58,51 @@ const Welcome = () => {
Collections
-
setCreateCollectionModalOpen(true)}> - +
-
- + +
-
setImportCollectionModalOpen(true)}> - + +
+
Links
- - + + Documentation
- + Report Issues
- - + + GitHub
From befad7e3a38ac3baab7b74ff38a94b67a7ab3946 Mon Sep 17 00:00:00 2001 From: Pragadesh-45 Date: Mon, 23 Sep 2024 15:25:37 +0530 Subject: [PATCH 2/3] enhance: accessibility over the buttons on the welcome page --- .../bruno-app/src/components/Welcome/index.js | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 1a57e212e6..7e2c9584b6 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 }) => { @@ -72,23 +70,34 @@ const Welcome = () => {
{t('COMMON.COLLECTIONS')}
- - -
+
{t('WELCOME.LINKS')}
@@ -96,6 +105,7 @@ const Welcome = () => { href="https://docs.usebruno.com" aria-label="Read documentation" target="_blank" + rel="noopener noreferrer" className="inline-flex items-center" > @@ -103,7 +113,13 @@ const Welcome = () => {
- + Report Issues @@ -111,8 +127,9 @@ const Welcome = () => {
@@ -121,7 +121,7 @@ const Welcome = () => { className="inline-flex items-center" > - Report Issues + {t('COMMON.REPORT_ISSUES')}
@@ -133,7 +133,7 @@ const Welcome = () => { className="flex items-center" > - GitHub + {t('COMMON.GITHUB')}