diff --git a/src/components/Editor/index.jsx b/src/components/Editor/index.jsx index 83a5de75..fb56ffed 100644 --- a/src/components/Editor/index.jsx +++ b/src/components/Editor/index.jsx @@ -122,6 +122,15 @@ const Editor = ( [contentClassName]: contentClassName, }); + const ariaAttributes = { + role: "textbox", + "aria-label": "editor-content", + "aria-multiline": "true", + "aria-labelledby": "labelId", + "aria-required": required, + "aria-roledescription": "editor", + }; + const editor = useEditor({ extensions: customExtensions, content: initialValue, @@ -132,6 +141,7 @@ const Editor = ( class: editorClasses, style: getEditorStyles({ rows }), "data-cy": "neeto-editor-content", + ...ariaAttributes, ...contentAttributes, }, clipboardTextParser,