I am trying to bind the selection state of button (selected or not selected) with aria-pressed
or aria-checked
property. But in none of the case sreen reader is announcing the value. I tried like:
1. data-bind="attr:{'aria-checked': knockoutBooleanVar()}", role = "button"
2. data-bind="attr:{'aria-pressed': knockoutBooleanVar()}", role = "button"
How can I achieve the screen reader announcing a selection state for the button?