diff --git a/.changeset/tiny-jobs-arrive.md b/.changeset/tiny-jobs-arrive.md new file mode 100644 index 00000000000..5c3481345e5 --- /dev/null +++ b/.changeset/tiny-jobs-arrive.md @@ -0,0 +1,5 @@ +--- +"@navikt/ds-react": patch +--- + +Checkbox: Remove redundant attribute aria-checked diff --git a/@navikt/core/react/src/form/checkbox/Checkbox.tsx b/@navikt/core/react/src/form/checkbox/Checkbox.tsx index 7379ead0822..45d1f09e35a 100644 --- a/@navikt/core/react/src/form/checkbox/Checkbox.tsx +++ b/@navikt/core/react/src/form/checkbox/Checkbox.tsx @@ -41,7 +41,6 @@ export const Checkbox = forwardRef( {...omit(inputProps, ["aria-invalid"])} type="checkbox" className="navds-checkbox__input" - aria-checked={props.indeterminate ? "mixed" : inputProps.checked} ref={(el) => { if (el) { el.indeterminate = props.indeterminate ?? false;