Skip to content

Commit

Permalink
Fix: Use aria-disabled instead of disabled on input (fixes #227)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Oct 8, 2024
1 parent f21b8c3 commit 06ad556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/mcq.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Mcq(props) {
id={`${_id}-${index}-input`}
name={_isRadio ? `${_id}-item` : null}
type={_isRadio ? 'radio' : 'checkbox'}
disabled={!_isEnabled}
aria-disabled={!_isEnabled}
checked={_isActive}
aria-label={!_shouldShowMarking ?
a11y.normalize(altText || text) :
Expand Down

0 comments on commit 06ad556

Please sign in to comment.