Skip to content

Commit

Permalink
fix(header): eu logo alt text and text top menu dropdowns are now rea…
Browse files Browse the repository at this point in the history
…d by screen readers
  • Loading branch information
ichim-david committed Nov 2, 2023
1 parent e5c187b commit 6ed4642
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/customizations/volto/components/theme/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,22 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
{isHomePageInverse && <BodyClass className="homepage" />}
<Header.TopHeader>
<Header.TopItem className="official-union">
<Image src={eeaFlag} alt="eea flag"></Image>
<Image src={eeaFlag} alt="European Union flag"></Image>
<Header.TopDropdownMenu
text="An official website of the European Union | How do you know?"
tabletText="EEA information systems"
mobileText=" "
mobileText="EEA information systems"
icon="chevron down"
aria-label="dropdown"
className=""
classNameHeader="mobile-sr-only"
viewportWidth={width}
>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
<div
className="content"
onClick={(evt) => evt.stopPropagation()}
onKeyDown={(evt) => evt.stopPropagation()}
tabIndex={0}
role={'presentation'}
>
<p>
All official European Union website addresses are in the{' '}
Expand All @@ -129,9 +130,10 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
<Header.TopDropdownMenu
id="theme-sites"
text={headerOpts.partnerLinks.title}
aria-label={headerOpts.partnerLinks.title}
viewportWidth={width}
>
<div className="wrapper">
<div className="wrapper" tabIndex={0} role={'presentation'}>
{headerOpts.partnerLinks.links.map((item, index) => (
<Dropdown.Item key={index}>
<a
Expand Down

0 comments on commit 6ed4642

Please sign in to comment.