Research Guides
Check a Research Toggle State Against the Results It Shows
A research view can show a filter as active without telling a screen-reader user it is on. If a single button turns a view option on and off, check its name, exposed state, and actual effect separately.
Decide whether the control describes an option or the next action
Suppose a fictional report has a button labeled “Show verified sources only.” If it behaves as a toggle button, keep that label stable and expose whether it is pressed. The W3C Button Pattern describes using aria-pressed for a toggle button and retaining its label as the state changes. A design that changes the label between two explicit actions is a different pattern; do not combine both approaches so the button is announced confusingly.
Check that the state and the results agree
In an authorized test view, start with a mix of verified and unverified sources. Use the keyboard to turn the option on. Confirm the accessible pressed state as well as the visual indication, then check that only verified sources remain. Toggle it off and confirm that the previous view returns. If the state changes but the result list does not, record that as a filtering problem rather than changing the label to cover it.
Retest after a view change
If a view is designed to preserve the setting, navigate away and return. Confirm the state is restored with the matching results. If the setting is designed to reset, confirm both reset together. A button’s name and state are separate from any status announcement about the number of results. Use the result count worksheet for that check.
Copy this toggle test
Button label | state before and after | keyboard action | expected list | actual list | behavior after returning
Test both directions. One correct announcement when a filter turns on does not establish that the user can tell when it turns off.