a11y: Introduce a dedicated role for toggle buttons
authorLukáš Tyrychtr <ltyrycht@redhat.com>
Thu, 23 Feb 2023 13:22:20 +0000 (14:22 +0100)
committerLukáš Tyrychtr <ltyrycht@redhat.com>
Thu, 23 Feb 2023 13:22:20 +0000 (14:22 +0100)
commitde80f503e4db282a7343aa16d2803967d4179739
treef190f1c53762eee58ba42b5c81921a8d2ec2c290
parent41b67c4722e64094ead02056e67509d31109ce94
a11y: Introduce a dedicated role for toggle buttons

Up until now, toggle buttons were presented as regular push buttons.
That's the approach used by the ARIA specification, however, our platform
accessibility backend, at-spi2, can not represent accessibe states with values,
so we can not represent the design pattern precisely enough for screen readers.
If, in future, the a11y backends gain this capability, we might consider again
removing this role.
gtk/a11y/gtkatspiutils.c
gtk/gtkenums.h