From 6504e5f4d303ab60263e26c8c6ce3d8e4e254904 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Mon, 14 Oct 2024 12:07:04 +0100 Subject: [PATCH] Fix: Use aria-disabled instead of disabled on input (fixes #183) (#184) --- templates/gmcq.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gmcq.jsx b/templates/gmcq.jsx index 94e1520..2f07be1 100644 --- a/templates/gmcq.jsx +++ b/templates/gmcq.jsx @@ -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 || ''}` :