diff --git a/.changeset/spotty-lobsters-change.md b/.changeset/spotty-lobsters-change.md new file mode 100644 index 0000000000..8a42ba82ab --- /dev/null +++ b/.changeset/spotty-lobsters-change.md @@ -0,0 +1,5 @@ +--- +"@navikt/ds-react": patch +--- + +Gjør lukknapp i Alert til type button diff --git a/@navikt/core/react/src/alert/Alert.tsx b/@navikt/core/react/src/alert/Alert.tsx index 947d472626..1701b17e88 100644 --- a/@navikt/core/react/src/alert/Alert.tsx +++ b/@navikt/core/react/src/alert/Alert.tsx @@ -117,6 +117,7 @@ export const Alert = forwardRef( size="small" variant="tertiary-neutral" onClick={onClose} + type="button" icon={} />