surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.11k stars 801 forks source link

Composite question elements are unreachable via VoiceOver cursor #8807

Open davidevans-wk opened 1 week ago

davidevans-wk commented 1 week ago

Are you requesting a feature, reporting a bug or asking a question?

Reporting a bug

What is the current behavior?

Unless I am misunderstanding expected VoiceOver usage (entirely possible), composite questions appear to be inaccessible to VoiceOver users via VoiceOver cursor.

What is the expected behavior?

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

Specify your

davidevans-wk commented 1 week ago

We are able to temporarily work around it with this—inspired by this comment—but figured this is something you would want to be fixed at the library level, or to at least provide a way for consumers to opt out of this markup.

survey.onAfterRenderQuestion.add((_model, { htmlElement }) => {
  if (htmlElement.getAttribute('role') === 'textbox') {
    htmlElement.removeAttribute('role');
  }
});
JaneSjs commented 6 days ago

Hello @davidevans-wk, Thank you for the update. To help us move forward and research the issue, would you please update access permissions for your code sandbox and make it public?

Thank you

davidevans-wk commented 6 days ago

Sorry about that! I didn't realize it was private. It should be public now.