Skip to content

Commit

Permalink
Aria hidden på ikoner som kun er for "syns" skyld (#6624)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilps authored Dec 16, 2024
1 parent 42b23fd commit de239d9
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const HandlingerForOppgave = ({
return (
<PersonButtonLink
size="small"
icon={<EyeIcon />}
icon={<EyeIcon aria-hidden />}
fnr={fnr || '-'}
fane={PersonOversiktFane.HENDELSER}
queryParams={{ referanse: referanse || '-' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ export const FilterRad = ({
</HStack>

<HStack gap="4">
<Button onClick={() => hentAlleOppgaver()} size="small" icon={<ArrowCirclepathIcon />} iconPosition="right">
<Button
onClick={() => hentAlleOppgaver()}
size="small"
icon={<ArrowCirclepathIcon aria-hidden />}
iconPosition="right"
>
Hent oppgaver
</Button>
<Button
Expand All @@ -144,7 +149,7 @@ export const FilterRad = ({
setFilter(filter)
}}
size="small"
icon={<ArrowUndoIcon />}
icon={<ArrowUndoIcon aria-hidden />}
iconPosition="right"
>
Tilbakestill filtre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ export const GosysFilterRad = ({ hentAlleOppgaver, filter, setFilter, filterFoed
</HStack>

<HStack gap="4">
<Button onClick={() => hentAlleOppgaver()} size="small" icon={<ArrowCirclepathIcon />} iconPosition="right">
<Button
onClick={() => hentAlleOppgaver()}
size="small"
icon={<ArrowCirclepathIcon aria-hidden />}
iconPosition="right"
>
Hent oppgaver
</Button>
<Button
Expand All @@ -73,7 +78,7 @@ export const GosysFilterRad = ({ hentAlleOppgaver, filter, setFilter, filterFoed
setFilter({ enhetFilter: 'visAlle' })
}}
size="small"
icon={<ArrowUndoIcon />}
icon={<ArrowUndoIcon aria-hidden />}
iconPosition="right"
>
Tilbakestill filtre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const BrevOppgaveModal = ({

return (
<>
<Button variant="primary" size="small" icon={<EyeIcon />} onClick={() => setIsOpen(true)}>
<Button variant="primary" size="small" icon={<EyeIcon aria-hidden />} onClick={() => setIsOpen(true)}>
Se oppgave
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const GeneriskOppgaveModal = ({

return (
<>
<Button variant="primary" size="small" icon={<EyeIcon />} onClick={() => setOpen(true)}>
<Button variant="primary" size="small" icon={<EyeIcon aria-hidden />} onClick={() => setOpen(true)}>
Se oppgave
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const InntektsopplysningModal = ({ oppgave, oppdaterStatus }: Props) => {

return (
<>
<Button variant="primary" size="small" icon={<EyeIcon />} onClick={() => setOpen(true)}>
<Button variant="primary" size="small" icon={<EyeIcon aria-hidden />} onClick={() => setOpen(true)}>
Se oppgave
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TilleggsinformasjonOppgaveModal = ({

return (
<>
<Button onClick={() => setIsOpen(true)} size="small" icon={<EyeIcon />}>
<Button onClick={() => setIsOpen(true)} size="small" icon={<EyeIcon aria-hidden />}>
Se oppgave
</Button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const VelgSaksbehandler = ({ saksbehandlereIEnhet, oppdaterTildeling, opp
<Dropdown open={openDropdown}>
<Button
as={Dropdown.Toggle}
icon={valgtSaksbehandler?.ident ? <PersonPencilIcon /> : <PersonPlusIcon />}
icon={valgtSaksbehandler?.ident ? <PersonPencilIcon aria-hidden /> : <PersonPlusIcon aria-hidden />}
iconPosition="left"
size="small"
variant="tertiary"
Expand Down Expand Up @@ -328,7 +328,7 @@ export const VelgSaksbehandler = ({ saksbehandlereIEnhet, oppdaterTildeling, opp
</Dropdown>
) : (
<SaksbehandlerNavnHStack gap="2" align="center">
<PersonIcon width="1.5rem" height="1.5rem" />
<PersonIcon width="1.5rem" height="1.5rem" aria-hidden />
<Label size="small" textColor="subtle">
{saksbehandler ? saksbehandler.navn : 'Navn mangler'}
</Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ export const Sidebar = ({ children }: { children: ReactNode }) => {
return (
<CollapsibleSidebar $collapsed={collapsed}>
<SidebarTools>
<Button variant={collapsed ? 'primary' : 'tertiary'} onClick={() => setCollapsed(!collapsed)}>
<Button
variant={collapsed ? 'primary' : 'tertiary'}
onClick={() => setCollapsed(!collapsed)}
aria-label={collapsed ? 'Åpne sidemeny' : 'Lukk sidemeny'}
>
{collapsed ? <ChevronLeftDoubleIcon /> : <ChevronRightDoubleIcon />}
</Button>
</SidebarTools>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export const ReleaseAlerts = () => {

return (
<Dropdown onOpenChange={(isOpen) => open(isOpen)}>
<InternalHeader.Button as={Dropdown.Toggle}>
<InternalHeader.Button as={Dropdown.Toggle} aria-label="Vis varslinger">
<div style={{ position: 'relative' }}>
<BellFillIcon style={{ fontSize: '1.5rem' }} />
<BellFillIcon style={{ fontSize: '1.5rem' }} aria-hidden />
{antallUlest > 0 && <UnreadCircle>{antallUlest}</UnreadCircle>}
</div>
</InternalHeader.Button>
Expand Down

0 comments on commit de239d9

Please sign in to comment.