I need to use NVDA screen-reader to read some messages when a dialog with progress bar appears.
At 0% duration of progress-bar, I need to announce: "Your received a timed message"
At 100% duration of progress-bar: "The message expired"
The progress-bar used is md-progress-linear.
The html code looks like below:
<md-dialog>
<md-progress-linear tabindex="0" ng-if="displayProgressIndicator || timeoutValue > 0" md-mode="determinate" class="promptProgressBar" value="{{progressValue}}"></md-progress-linear>
<md-content class="md-title dialogTitle">
{{messageTitle}}
</md-content>
<md-content class="md-dialog-content">
{{messageText}}
</md-content>
<div class="md-dialog-actions">
<md-button ng-style="theme.SecondaryButton" ng-click="OnClose()" class="md-primary right">
{{primaryActionText}}
</md-button>
<md-button ng-style="theme.SecondaryButton" ng-if="secondaryActionText.length > 0" ng-click="OnCancel()" class="md-primary right">
{{secondaryActionText}}
</md-button>
</div>
</md-dialog>
I saw some working examples for slider which uses aria-valuetext attribute and NVDA reads those texts properly.
I tried adding aria-valuetext attribute in md-progress-linear element, but doesn't work.
When the message is arrived, NVDA produces beep sounds, but do not read aria-valuetext.
Any idea on how to do it?