Skip to content

Commit

Permalink
Modal: Fjern tomt element
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan committed Mar 22, 2024
1 parent d991011 commit fe79b60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-bulldogs-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-react": patch
---

Modal: Fjern tomt element
6 changes: 5 additions & 1 deletion @navikt/core/react/src/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ export const Modal = forwardRef<HTMLDialogElement, ModalProps>(
level="1"
id={ariaLabelId}
>
<span className="navds-modal__header-icon">{header.icon}</span>
{header.icon && (
<span className="navds-modal__header-icon">
{header.icon}
</span>
)}
{header.heading}
</Heading>
</ModalHeader>
Expand Down

0 comments on commit fe79b60

Please sign in to comment.