Skip to content

Commit

Permalink
Fix: Use aria-disabled instead of disabled on input (fixes #183)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Oct 8, 2024
1 parent 2afa40c commit d884159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/gmcq.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Gmcq(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)} ${_graphic?.alt || ''}` :
Expand Down

0 comments on commit d884159

Please sign in to comment.