-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notebook cell actions are not announced to screenreader. #6947
Comments
copied from the milestone.
Not sure if this is a path you want to go but I always add this kind of capability by doing the following.
/* ===== Make Screenreader-Only Alert ===== */
function makeScreenreaderAlert(element_id, on_message, off_message){
let element = '#' + element_id;
if ($(element).length){
$(element).text(message);
}
else {
$('#screenreaderAlerts').apend('<div id="' + element_id + '" role="alert">' + message + '</div>');
}
}
makeScreenreaderAlert('notebookActionAlert', 'Cell has finished running.'); The purpose of the element_id part of it is so you can override it with other actions of the same type and users can re-read alerts as they wish and it doesn't take away from the visual-user experience. Example of the former is if you want to fire one on cell run start and cell run finish, if it's a 20 second cell run, it could alert them that |
to clarify, these announcements are non visual from the aria live mdn docs:
it seems that cells completing would make sense as the aria live features shouldn't visually impact the the notebook. it seems that announcements could go in either the fixing this likely requires a single pull request that:
in the future, we might find sounds are appropriate for less important messages like adding a new cell, rendering some markdown. |
User does not really know when cell was run, stopped, moved, duplicated, etc. successfully or what the cell is currently outputting automatically without manually doing it as it's popping out (which they won't be able to see to know to follow alone.
Issue Area # 4
The text was updated successfully, but these errors were encountered: