-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui-options): subgroup titles in Options are now announnced by Tal… #1714
fix(ui-options): subgroup titles in Options are now announnced by Tal… #1714
Conversation
|
ada13fd
to
953fcb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a hint, be careful when using DOM globals like navigator
, a lot of them are undefined
in Node, resulting in errors when using SSR. I've tested this one with our regression testing app and it works OK because Node returns Node.js/22
, but this code might break in some SSR edge cases like using Bun (havent tested it) or just this value is used in a mobile browser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use
* A utility module using the [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) browser |
return ( | ||
<span | ||
id={this._labelId} | ||
role="presentation" | ||
aria-hidden="true" | ||
aria-hidden={isAndroidOrIOS ? 'false' : 'true'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please leave a comment detailing why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote the code with ua-parser-js and left a comment too
a0e7284
to
2cca1ce
Compare
…d by TalkBack and iOS VoiceOver Closes: INSTUI-4235
2cca1ce
to
80feb80
Compare
…kBack and iOS VoiceOver
Closes: INSTUI-4235
ISSUE:
Subgroup titles are not read in Options with Android Talkback and iOS Voiceover. It works perfectly on Mac Voiceover and on Windows.
TEST PLAN: