Skip to content

Commit

Permalink
fix. Mulighet for å lukke modal for å overta avtale
Browse files Browse the repository at this point in the history
* La til heading på modal slik at X-knapp blir vist
* Fikse aria-label på modal
  • Loading branch information
eirikv committed Apr 4, 2024
1 parent 4ae67ed commit 109976b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/AvtaleSide/OvertaAvtalen/UfordeltModusModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FordelAvtaleVeileder } from '@/AvtaleSide/steg/GodkjenningSteg/FordelAvtaleVeileder';
import BEMHelper from '@/utils/bem';
import { Modal } from '@navikt/ds-react';
import { Heading, Modal } from '@navikt/ds-react';
import React from 'react';
import './UfordeltModusModal.less';

Expand All @@ -14,8 +14,10 @@ interface Props {
const UfordeltModusModal = (props: Props) => {
return (
<Modal
aria-label="Overta avtale -modal"
aria-label="Modal for å overta avtale"
className={cls.element('modal')}
closeOnBackdropClick
header={{ heading: 'Avtalen er ufordelt' }}
onClose={props.lukkModal}
open={props.isOpen}
>
Expand Down
3 changes: 0 additions & 3 deletions src/AvtaleSide/steg/GodkjenningSteg/FordelAvtaleVeileder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export const FordelAvtaleVeileder: FunctionComponent = () => {
return (
<Innholdsboks>
<div style={{ textAlign: 'center' }}>
<VerticalSpacer rem={1} />
<Heading size="medium">Avtalen er ufordelt</Heading>
<VerticalSpacer rem={1} />
<BodyShort size="small">
Avtalen er opprettet av arbeidsgiver. Den er ikke tildelt en veileder ennå.
</BodyShort>
Expand Down

0 comments on commit 109976b

Please sign in to comment.