accessible name computation & changing button labels

Hi all . working on a project at the moment with buttons whose label changes
when pressed .. can't get a screen reader to announce the changed label in
situ (i.e., when focus remains on the button).  

 

Adding aria-live to the button or somewhere else on the screen just seems
like an ugly hack from yesteryear and it causes unnecessary repetition.

 

Just wondering, first, what the accessible name computation algorithm says
about this case or what the spec behaviour should  be, and, second, whether
anyone has any tips on how to resolve this?

 

Cheers,

Adam 

Received on Wednesday, 14 October 2020 06:59:27 UTC