Skip to content

Commit

Permalink
modal fixes (#1201)
Browse files Browse the repository at this point in the history
* Fix scrollbar og aria-labelled-by

* Remove unused props
  • Loading branch information
tu55eladd authored Oct 9, 2023
1 parent d0f9864 commit 2341e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/felles-komponenter/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ interface Props {
contentClass?: string;
onRequestClose?(): void;
tilbakeLenke?: { tekst: string; onTilbakeKlikk: MouseEventHandler };
// contentLabel: string;
// ariaLabelledby?: string;
}

const Modal = (props: Props) => {
Expand Down Expand Up @@ -47,8 +45,8 @@ const Modal = (props: Props) => {
};

return (
<AkselModal open onClose={closeFuncOrDefault} className="lg:w-120">
<AkselModal.Header closeButton={true} aria-labelledby="modal-heading">
<AkselModal open onClose={closeFuncOrDefault} className="lg:w-120" aria-labelledby="modal-heading">
<AkselModal.Header closeButton={true}>
<div className="space-y-2">
<Heading id="modal-heading" size="large">
{heading}
Expand Down
2 changes: 1 addition & 1 deletion src/moduler/aktivitet/ny-aktivitet/LeggTilForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const LeggTilForm = () => {
) : null}
</div>
{erVeileder ? (
<div className="space-y-3 flex flex-col bg-surface-alt-3-subtle -mx-8 px-8 py-4">
<div className="space-y-3 flex flex-col bg-surface-alt-3-subtle -mx-[24px] px-8 py-4">
<Heading level="2" size="medium">
For NAV-ansatt
</Heading>
Expand Down

0 comments on commit 2341e88

Please sign in to comment.