Skip to content

Commit

Permalink
fix(ui-options): subgroup titles in Options are not announced by Talk…
Browse files Browse the repository at this point in the history
…Back and iOS VoiceOver

Closes: INSTUI-4235
  • Loading branch information
ToMESSKa committed Oct 4, 2024
1 parent 1fa63c4 commit 953fcb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui-options/src/Options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ class Options extends Component<OptionsProps> {

renderLabel() {
const { renderLabel, styles } = this.props
const isAndroidOrIOS = /Android|iPhone|iPad/i.test(navigator.userAgent)
return (
<span
id={this._labelId}
role="presentation"
aria-hidden="true"
aria-hidden={isAndroidOrIOS ? 'false' : 'true'}
css={styles?.label}
>
{callRenderProp(renderLabel)}
Expand Down

0 comments on commit 953fcb8

Please sign in to comment.