Feat: <md-aria-status> directive to be consumed by mdToast and mdAutocomplete #3174
Description
To enable $mdToast
accessibility, Angular Material needs a global version of the <aria-status>
directive used in mdAutocomplete
. A single Live Region directive for an entire app, which could be used by multiple components as a reusable message center. It would also make screen reader messages easier to localize, per #1696. This should be part of the core functionality to ensure its inclusion for Angular Material components, though I could see a message service being useful for other live regions.
mdAutocomplete uses aria-live="assertive"
so that messages will be announced immediately as you type, but I'm investigating whether it can use aria-live="polite"
, which would be more appropriate for mdToast. Components using the global directive will have to share live region settings, as far as I know (role, atomic, relevant, etc.).