Skip to content

Commit

Permalink
Merge fd0623a into 299c5f1
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan authored Feb 26, 2024
2 parents 299c5f1 + fd0623a commit 8b7538d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-penguins-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-react": patch
---

Modal: Endre title på lukkeknapp til bare 'Lukk'
5 changes: 5 additions & 0 deletions .changeset/tidy-toys-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-css": patch
---

Modal: Får nå fokus når åpnes i Safari
2 changes: 1 addition & 1 deletion @navikt/core/css/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@

@keyframes akselModalFadeIn {
from {
opacity: 0;
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
transform: translate3d(0, calc(5% + 4px), 0);
}

Expand Down
2 changes: 1 addition & 1 deletion @navikt/core/react/src/modal/ModalHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ModalHeader = forwardRef<HTMLDivElement, ModalHeaderProps>(
size="small"
variant="tertiary-neutral"
onClick={context.closeHandler}
icon={<XMarkIcon title="Lukk modalvindu" />}
icon={<XMarkIcon title="Lukk" />}
/>
)}
{children}
Expand Down

0 comments on commit 8b7538d

Please sign in to comment.