ravip0711
ravip0711

Reputation: 511

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?

Upvotes: 11

Views: 3691

Answers (2)

Daniel Danielecki
Daniel Danielecki

Reputation: 10532

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.

Upvotes: 3

slugolicious
slugolicious

Reputation: 17485

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".

Upvotes: 10

Related Questions