I have a WinForm app that has a button with a background image. There is no text for the button. It just has a 'refresh' symbol on it.
Since there's no text, a screen reader can't "see" the button to indicate what it is. When I add text, though, it's over the image and looks terrible.
Is there a way in a WinForm app for a button to have hidden text visible to the screen reader, but not to the user?
To hide text from a screen reader and display it visually, use the aria-hidden attribute and set it to true. To hide text from a screen reader and hide it visually use the hidden attribute. You can also use CSS to set display: none or visibility: hidden to hide an element from screen readers and visually.
In the properties of the button, there is an Accessibility
section.
You can set the following property: AccessibilityName
I tested with a screen reader on windows 10 and it used that field when hovering over a button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With