gluestack / gluestack-ui

React & React Native Components & Patterns (copy-paste components & patterns crafted with Tailwind CSS (NativeWind))
https://gluestack.io/
MIT License
2.76k stars 121 forks source link

Screen Reader Not Reading Label of Radio Component #2544

Open MozesKadar opened 3 weeks ago

MozesKadar commented 3 weeks ago

Description

I'm experiencing an issue with the Radio component where the screen reader reads the value field instead of the label. When I set the accessibilityLabel property, the screen reader still doesn't read it correctly.

CodeSandbox/Snack link

-

Steps to reproduce

  1. Add a Radio component with a label and a value.
  2. Enable a screen reader and navigate to the Radio component.
  3. Observe that the screen reader reads the value instead of the label or accessibilityLabel.

gluestack-ui Version

1.1.48

Platform

Other Platform

No response

Additional Information

Expected Behavior: The screen reader should read the label or, if provided, the accessibilityLabel for the Radio component.

Actual Behavior: The screen reader reads the value field regardless of the presence of label or accessibilityLabel.