From 10be062a2c00ed80935f5a255adebd38a617a2a3 Mon Sep 17 00:00:00 2001 From: Cintia Sanchez Garcia Date: Fri, 26 Jul 2024 08:55:24 +0200 Subject: [PATCH] Improve accessibility support Closes #104 Signed-off-by: Cintia Sanchez Garcia --- .../src/components/AcquisitionsTable.tsx | 1 + ui/common/src/components/BadgeModal.tsx | 1 + ui/common/src/components/Box.tsx | 3 +- .../src/components/ButtonCopyToClipboard.tsx | 2 +- ui/common/src/components/CollapsableText.tsx | 7 +- ui/common/src/components/ExternalLink.tsx | 4 +- .../src/components/FundingRoundsTable.tsx | 1 + ui/common/src/components/Image.tsx | 6 +- ui/common/src/components/ItemDropdown.tsx | 2 + ui/common/src/components/ItemModalContent.tsx | 12 +++- .../src/components/ItemModalMobileContent.tsx | 18 ++++- ui/common/src/components/LanguagesStats.tsx | 1 + ui/common/src/components/Modal.tsx | 11 ++- ui/common/src/components/ParentProject.tsx | 2 + .../src/components/RepositoriesSection.tsx | 14 +++- ui/common/src/components/SVGIcon.tsx | 69 +++++++++++++++++++ ui/common/src/components/Tabs.tsx | 2 +- ui/embed-item/src/common/ItemModal.tsx | 2 +- ui/embed/src/common/CardItem.tsx | 1 + ui/embed/src/common/ExternalLink.tsx | 2 +- ui/embed/src/common/GridItem.tsx | 1 + ui/embed/src/common/Loading.tsx | 2 +- ui/embed/src/common/SVGIcon.tsx | 2 + .../src/layout/common/ActiveFiltersList.tsx | 1 + .../src/layout/common/ButtonToTopScroll.tsx | 1 + ui/webapp/src/layout/common/Checkbox.tsx | 67 +++++++++--------- .../src/layout/common/DownloadDropdown.tsx | 5 ++ ui/webapp/src/layout/common/FiltersInLine.tsx | 2 +- .../src/layout/common/FullScreenModal.tsx | 10 ++- ui/webapp/src/layout/common/Searchbar.tsx | 8 ++- ui/webapp/src/layout/common/Section.tsx | 1 + ui/webapp/src/layout/common/Sidebar.tsx | 2 +- .../src/layout/common/itemModal/index.tsx | 1 + .../src/layout/common/zoomModal/index.tsx | 1 + .../src/layout/explore/card/Card.module.css | 3 +- ui/webapp/src/layout/explore/card/Card.tsx | 5 +- ui/webapp/src/layout/explore/card/Content.tsx | 6 +- ui/webapp/src/layout/explore/card/Menu.tsx | 1 + .../explore/filters/SearchbarSection.tsx | 2 + .../src/layout/explore/filters/index.tsx | 34 +++++---- ui/webapp/src/layout/explore/grid/Grid.tsx | 6 +- .../src/layout/explore/grid/GridItem.tsx | 6 +- ui/webapp/src/layout/explore/index.tsx | 14 ++-- .../src/layout/explore/mobile/Card.module.css | 3 +- ui/webapp/src/layout/explore/mobile/Card.tsx | 4 +- .../src/layout/explore/mobile/MobileGrid.tsx | 48 +++++++------ .../src/layout/finances/MobileFilters.tsx | 1 + ui/webapp/src/layout/finances/index.tsx | 3 +- ui/webapp/src/layout/games/Content.tsx | 33 +++++++-- ui/webapp/src/layout/guide/Guide.module.css | 7 +- .../src/layout/guide/SubcategoryGrid.tsx | 6 +- ui/webapp/src/layout/guide/ToC.tsx | 1 + ui/webapp/src/layout/logos/index.tsx | 5 +- .../src/layout/navigation/EmbedModal.tsx | 26 ++++--- ui/webapp/src/layout/navigation/Footer.tsx | 1 + ui/webapp/src/layout/navigation/Header.tsx | 7 +- .../src/layout/navigation/MobileDropdown.tsx | 1 + .../src/layout/navigation/MobileHeader.tsx | 7 +- ui/webapp/src/layout/notFound/index.tsx | 6 +- .../src/layout/projects/MobileFilters.tsx | 1 + ui/webapp/src/layout/projects/index.tsx | 3 +- ui/webapp/src/layout/stats/Box.module.css | 4 +- ui/webapp/src/layout/stats/Box.tsx | 6 +- ui/webapp/src/layout/stats/ChartsGroup.tsx | 2 +- .../src/layout/stats/CollapsableTable.tsx | 7 +- ui/webapp/src/layout/stats/Content.tsx | 52 ++++++++++---- ui/webapp/src/layout/stats/HeatMapChart.tsx | 2 +- .../src/layout/stats/HorizontalBarChart.tsx | 2 +- .../src/layout/stats/TimestampLineChart.tsx | 2 +- .../src/layout/stats/VerticalBarChart.tsx | 2 +- .../upcomingEvents/UpcomingEvents.module.css | 9 +-- ui/webapp/src/layout/upcomingEvents/index.tsx | 7 +- ui/webapp/yarn.lock | 16 ++--- 73 files changed, 439 insertions(+), 177 deletions(-) diff --git a/ui/common/src/components/AcquisitionsTable.tsx b/ui/common/src/components/AcquisitionsTable.tsx index 6d9c47e3..e147c822 100644 --- a/ui/common/src/components/AcquisitionsTable.tsx +++ b/ui/common/src/components/AcquisitionsTable.tsx @@ -120,6 +120,7 @@ export const AcquisitionsTable = (props: Props) => { diff --git a/ui/common/src/components/BadgeModal.tsx b/ui/common/src/components/BadgeModal.tsx index c9f09c0d..966e6b7d 100644 --- a/ui/common/src/components/BadgeModal.tsx +++ b/ui/common/src/components/BadgeModal.tsx @@ -36,6 +36,7 @@ export const BadgeModal = (props: Props) => { return ( { -
+
0 }} diff --git a/ui/common/src/components/ButtonCopyToClipboard.tsx b/ui/common/src/components/ButtonCopyToClipboard.tsx index df253cd5..4ecc7655 100644 --- a/ui/common/src/components/ButtonCopyToClipboard.tsx +++ b/ui/common/src/components/ButtonCopyToClipboard.tsx @@ -97,7 +97,7 @@ export const ButtonCopyToClipboard = (props: Props) => { } }} disabled={props.disabled} - aria-label={props.label || 'Copy to clipboard'} + aria-label={props.contentBtn || props.label || 'Copy to clipboard'} >