0

I have a button who text should be visible in uppercase as "LOG OUT". But, when the button gets focused using TAB press, NVDA screen-reader reads it as character by character as "L", "O", "G", "O","U", "T" instead of two words "LOG" and "OUT".

Demo for the issue.

HTML:

<div ng-controller="AppCtrl" ng-cloak="" ng-app="MyApp">
      <md-button tab-index="0" role="button">Log out</md-button> 
</div>

JS:

angular.module('MyApp', ['ngMaterial'])
.controller('AppCtrl', function($scope) {
});
Coding man
  • 957
  • 1
  • 18
  • 44

1 Answers1

1

You can use the aria-label property to override the text content:

<md-button tab-index="0" role="button" aria-label="log out">Log out</md-button>
G. Tranter
  • 16,766
  • 1
  • 48
  • 68