From ab15a548e2faa2115082116308539918d4553ec7 Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke@nordu.net> Date: Mon, 10 Feb 2025 09:44:04 +0100 Subject: [PATCH] Add alt to images --- compendium-frontend/src/components/global/Banner.tsx | 2 +- .../src/components/global/ExternalPageNavBar.tsx | 2 +- compendium-frontend/src/components/global/GeantFooter.tsx | 4 ++-- compendium-frontend/src/components/global/SectionLink.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compendium-frontend/src/components/global/Banner.tsx b/compendium-frontend/src/components/global/Banner.tsx index a844feee..60ea19f6 100644 --- a/compendium-frontend/src/components/global/Banner.tsx +++ b/compendium-frontend/src/components/global/Banner.tsx @@ -22,7 +22,7 @@ function Banner({ children, type }: inputProps): ReactElement { <Row> <Row> <div className="section-container"> - <img src={SectionDataLogo} style={{ maxWidth: '7rem', marginBottom: '1rem' }} /> + <img src={SectionDataLogo} style={{ maxWidth: '7rem', marginBottom: '1rem' }} alt="Compendium Data logo" /> <div style={{ display: "flex", alignSelf: "right" }}> <div className="center-text" style={{ paddingTop: '1rem' }}> {children} diff --git a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx b/compendium-frontend/src/components/global/ExternalPageNavBar.tsx index 9422605b..b578bc67 100644 --- a/compendium-frontend/src/components/global/ExternalPageNavBar.tsx +++ b/compendium-frontend/src/components/global/ExternalPageNavBar.tsx @@ -17,7 +17,7 @@ function ExternalPageNavBar(): ReactElement { <Col xs={10}> <div className="nav-wrapper"> <nav className="header-nav"> - <a href="https://geant.org/"><img src={GeantLogo} /></a> + <a href="https://geant.org/"><img src={GeantLogo} alt="GÉANT Logo" /></a> <ul> <li><a className="nav-link-entry" href="https://network.geant.org/">NETWORK</a></li> diff --git a/compendium-frontend/src/components/global/GeantFooter.tsx b/compendium-frontend/src/components/global/GeantFooter.tsx index 58d22759..06823b73 100644 --- a/compendium-frontend/src/components/global/GeantFooter.tsx +++ b/compendium-frontend/src/components/global/GeantFooter.tsx @@ -11,9 +11,9 @@ function GeantFooter(): ReactElement { <Row> <Col> <a href="https://geant.org"> - <img src={GeantLogo} className="m-3" style={{ maxWidth: "100px" }} /> + <img src={GeantLogo} className="m-3" style={{ maxWidth: "100px" }} alt="GÉANT Logo" /> </a> - <img src={EULogo} className="m-3" style={{ maxWidth: "200px" }} /> + <img src={EULogo} className="m-3" style={{ maxWidth: "200px" }} alt="European Union Flag" /> </Col> <Col className="mt-4 text-end"> <span> diff --git a/compendium-frontend/src/components/global/SectionLink.tsx b/compendium-frontend/src/components/global/SectionLink.tsx index cddab19a..3005288e 100644 --- a/compendium-frontend/src/components/global/SectionLink.tsx +++ b/compendium-frontend/src/components/global/SectionLink.tsx @@ -16,7 +16,7 @@ function SectionLink({ section }: inputProps): ReactElement { </div> - <img src={SectionDataLogo} style={{ maxWidth: "4rem" }} /> + <img src={SectionDataLogo} style={{ maxWidth: "4rem" }} alt="Compendium Data logo" /> </div> ); -- GitLab