Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should aria-label's be capitalized?

I've seen some examples and documentation that capitalizes the first word of aria labels. Why is this? What if you have two words?

like image 839
ravip0711 Avatar asked Apr 19 '18 21:04

ravip0711


2 Answers

It doesn't matter if it's sentence case, camel case, or all lowercase. Most screen readers will say it the same. But don't make the label all caps because that can change the inflection of the screen reader voice and can cause some words to be read as separate characters. For example, "MY LABEL" could be potentially be pronunced as "em why el a be ee el".

like image 130
slugolicious Avatar answered Nov 14 '22 11:11

slugolicious


I was using ChromeVox to test this behaviour and the screen reader in all the three cases is reading using the same pronunciation and in the same speed, i.e. for these examples:

  1. THIS IS MY TEXT
  2. This Is My Text
  3. this is my text

Haven't noticed any difference.

like image 36
Daniel Danielecki Avatar answered Nov 14 '22 10:11

Daniel Danielecki