From 2341e88aff0455f7e32abd3ca8f680aca566d5fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigurd=20Gr=C3=B8neng?= Date: Mon, 9 Oct 2023 15:53:47 +0200 Subject: [PATCH] modal fixes (#1201) * Fix scrollbar og aria-labelled-by * Remove unused props --- src/felles-komponenter/modal/Modal.tsx | 6 ++---- src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/felles-komponenter/modal/Modal.tsx b/src/felles-komponenter/modal/Modal.tsx index c0e16bec8..a634acba5 100644 --- a/src/felles-komponenter/modal/Modal.tsx +++ b/src/felles-komponenter/modal/Modal.tsx @@ -18,8 +18,6 @@ interface Props { contentClass?: string; onRequestClose?(): void; tilbakeLenke?: { tekst: string; onTilbakeKlikk: MouseEventHandler }; - // contentLabel: string; - // ariaLabelledby?: string; } const Modal = (props: Props) => { @@ -47,8 +45,8 @@ const Modal = (props: Props) => { }; return ( - - + +
{heading} diff --git a/src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx b/src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx index dadea4fad..d0be82158 100644 --- a/src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx +++ b/src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx @@ -29,7 +29,7 @@ const LeggTilForm = () => { ) : null}
{erVeileder ? ( -
+
For NAV-ansatt