Limekiller / moodle-block_openai_chat

An AI chat block for Moodle, powered by GPT
https://moodle.org/plugins/block_openai_chat
GNU General Public License v3.0
29 stars 18 forks source link

Accessibility issue with screen readers #24

Closed michael-milette closed 1 year ago

michael-milette commented 1 year ago

Good day,

Would it be possible to implement this in such a way that screen readers would read the completion response? For someone who is visually impaired, it would be a real pain to always have to click on the response in order to have the screen reader read the response.

Best regards,

Michael Milette

Limekiller commented 1 year ago

I've added a role=log property to the chat window, allowing screen readers to automatically read updates (tested with NVDA). However, the text labels above each message cause a real issue and aren't read in order -- I recommend using the "disable labels" option of the chat block if this is undesired.

(added in a3919c7)

michael-milette commented 1 year ago

Thank you!