There is no visible text on the button, but do I need text to read from the screen?

I have a WinForm application that has a button with a background image. There is no text for the button. It just has a refresh symbol.

Since there is no text, the screen reader cannot β€œsee” the button to indicate what it is. However, when I add text, it is above the image and looks awful.

Is there a way in a WinForm application for a button so that hidden text is visible to a screen reader, but not to the user?

+5
source share
1 answer

The button properties have an Accessibility section.

You can set the following property: AccessibilityName

I tested with a screen reader in windows 10 and used this field when hovering over a button.

Button screenshot properties

+6
source

Source: https://habr.com/ru/post/1242300/


All Articles