Closed upsilon closed 5 years ago
Can you, also, hide icons to improve accessibility with aria-hidden="true"
?
In the method "createIcon" :
var iel = document.createElement('i');
iel.setAttribute("aria-hidden", "true")
Should I add an option to set alternate text as aria-label="..."
to icons?
No need. The aria-hidden is enough. :-)
Should I add an option to set alternate text as
aria-label="..."
to icons?
It's not possible to set both aria-hidden="true"
and aria-label="..."
, I'll add only aria-hidden="true"
.
Thanks @upsilon ! :-)
@shakee93 Can you approve this PR, please ? I need it. :-) Thanks !
Fixes #102
This is basic implementation of accessible toasts. I've tested on the Safari with VoiceOver.
To use
aria-live="polite"
, this PR changes behavior of the container element of toasts to be inserted into the body immediately, rather than while calling$toasted.show()
.