Skip to content

Commit

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

Closes: INSTUI-4235
  • Loading branch information
ToMESSKa committed Oct 4, 2024
1 parent 1fa63c4 commit ada13fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 All @@ -119,7 +120,7 @@ class Options extends Component<OptionsProps> {
renderSubList(subOptions: OptionsChild) {
const { styles } = this.props
return (
<Item as={this.childAs} role="presentation" css={styles?.label}>
<Item as={this.childAs} role="presention" css={styles?.label}>
{subOptions}
</Item>
)
Expand Down

0 comments on commit ada13fd

Please sign in to comment.