Skip to content

Missing accessibilityRole="option"#1682

Closed
jonstuebe wants to merge 1 commit into
necolas:masterfrom
jonstuebe:feature/accessibility-role-option
Closed

Missing accessibilityRole="option"#1682
jonstuebe wants to merge 1 commit into
necolas:masterfrom
jonstuebe:feature/accessibility-role-option

Conversation

@jonstuebe

Copy link
Copy Markdown

I've been building a combobox and found that react-native-web is missing the accessibilityRole="option" necessary for proper voice over. I might be missing some other changes below as I'm not super familiar with the codebase.

Here's a link to the spec examples detailing the role usage:

https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html

@necolas

necolas commented Jul 23, 2020

Copy link
Copy Markdown
Owner

<View accessibilityRole="option" /> already produces <div role="option" />

@jonstuebe

Copy link
Copy Markdown
Author

Is there a fall through in the code somewhere @necolas? I'm using TS so it sounds like a type issue then.

@jonstuebe jonstuebe closed this Jul 23, 2020
@jonstuebe jonstuebe deleted the feature/accessibility-role-option branch July 23, 2020 20:23
@necolas

necolas commented Jul 24, 2020

Copy link
Copy Markdown
Owner

Ah, yes it might be typescript. There was another types issue that was brought up recently #1668.

As time goes I'm starting to wonder more about types. Maybe I'll make another issue to solicit input about types.

@necolas

necolas commented Jul 24, 2020

Copy link
Copy Markdown
Owner

If you have any thoughts: #1684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants