From 17f2def84ed9f9fb26c14e48bab64fcedac5792d Mon Sep 17 00:00:00 2001 From: William Lima Date: Sun, 17 Dec 2023 22:00:52 -0100 Subject: [PATCH] #140 accessibility fixes --- components/_shared/carousel/card/Card.tsx | 4 ++-- components/_shared/carousel/icon_card/IconCard.tsx | 2 +- components/organization/Header.tsx | 8 +++++++- components/organization/MainOptions.tsx | 1 + components/request/RequestData.tsx | 7 +++++-- components/search/Pagination.tsx | 1 + components/static/List.tsx | 4 ++-- 7 files changed, 19 insertions(+), 8 deletions(-) diff --git a/components/_shared/carousel/card/Card.tsx b/components/_shared/carousel/card/Card.tsx index d84953f..bd9bab6 100644 --- a/components/_shared/carousel/card/Card.tsx +++ b/components/_shared/carousel/card/Card.tsx @@ -15,7 +15,7 @@ interface CardProps { const Card: React.FC = ({ title, icon, image }) => { return ( <> -
+
= ({ title, icon, image }) => { />
= ({ <>
diff --git a/components/organization/Header.tsx b/components/organization/Header.tsx index c94b851..c6e36dd 100644 --- a/components/organization/Header.tsx +++ b/components/organization/Header.tsx @@ -1,7 +1,12 @@ import useTranslation from 'next-translate/useTranslation'; import ImageHeader from '../_shared/image_header/ImageHeader'; -const Header: React.FC = ({ org, datasetsCount, badgeOnClick }) => { +const Header: React.FC = ({ + org, + datasetsCount, + badgeOnClick, + color, +}) => { const { t } = useTranslation('common'); const icon = { @@ -27,6 +32,7 @@ const Header: React.FC = ({ org, datasetsCount, badgeOnClick }) => { badgeText={badgeText} image={image} badgeOnClick={badgeOnClick} + color={color} > {description} diff --git a/components/organization/MainOptions.tsx b/components/organization/MainOptions.tsx index cc3b14a..4c02d02 100644 --- a/components/organization/MainOptions.tsx +++ b/components/organization/MainOptions.tsx @@ -142,6 +142,7 @@ const MainOptions: React.FC = ({ <>
{ diff --git a/components/request/RequestData.tsx b/components/request/RequestData.tsx index 380abcf..4f4c983 100644 --- a/components/request/RequestData.tsx +++ b/components/request/RequestData.tsx @@ -155,7 +155,7 @@ const RequestData: React.FC = () => {

{t('request-header')}

-

+

{t('request-descrp')}

@@ -163,6 +163,7 @@ const RequestData: React.FC = () => { { email {