From b60c799645b94748d570d77fe99049bd483341b3 Mon Sep 17 00:00:00 2001 From: Pragadesh-45 <54320162+Pragadesh-45@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:22:12 +0530 Subject: [PATCH] fix: accessibility issue in side bar's footer (#3130) * fix: accessibility issues in side bar footer icons * small accessibility changes & formatting * chore: fixed misspell * chore: code cleanup * added proper aria-labels and added with the footer as `ul` * chore: code cleanup --------- Co-authored-by: Shrilakshmi Shastry --- .../src/components/Notifications/index.js | 19 +-- .../src/components/Sidebar/TitleBar/index.js | 14 +-- .../bruno-app/src/components/Sidebar/index.js | 114 +++++++++++++----- 3 files changed, 101 insertions(+), 46 deletions(-) diff --git a/packages/bruno-app/src/components/Notifications/index.js b/packages/bruno-app/src/components/Notifications/index.js index 245538541..ba257bf48 100644 --- a/packages/bruno-app/src/components/Notifications/index.js +++ b/packages/bruno-app/src/components/Notifications/index.js @@ -93,10 +93,12 @@ const Notifications = () => { dispatch(fetchNotifications()); setShowNotificationsModal(true); }} + aria-label="Check all Notifications" > - + 0 ? 'bell' : ''}`} /> @@ -133,8 +135,9 @@ const Notifications = () => { {notifications?.slice(notificationsStartIndex, notificationsEndIndex)?.map((notification) => (
  • {notification?.title}
    @@ -144,8 +147,9 @@ const Notifications = () => {
    } placement="bottom-start">
    { const leftSidebarWidth = useSelector((state) => state.app.leftSidebarWidth); const preferencesOpen = useSelector((state) => state.app.showPreferences); - const [goldenEditonOpen, setGoldenEditonOpen] = useState(false); + const [goldenEditionOpen, setGoldenEditionOpen] = useState(false); const [asideWidth, setAsideWidth] = useState(leftSidebarWidth); const [cookiesOpen, setCookiesOpen] = useState(false); @@ -83,10 +83,43 @@ const Sidebar = () => { return ( +
    - + ); };