Skip to content

Commit

Permalink
Gjør lukknapp i alert til type button
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvard committed Nov 20, 2023
1 parent 8783f18 commit e4d8d0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-lobsters-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-react": patch
---

Gjør lukknapp i Alert til type button
1 change: 1 addition & 0 deletions @navikt/core/react/src/alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const Alert = forwardRef<HTMLDivElement, AlertProps>(
size="small"
variant="tertiary-neutral"
onClick={onClose}
type="button"
icon={<XMarkIcon title="Lukk Alert" />}
/>
</div>
Expand Down

0 comments on commit e4d8d0c

Please sign in to comment.