Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria hidden på ikoner som kun er for "syns" skyld #6624

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading