Skip to content
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

Adds ARIA role support to Paper UIManager #12792

Merged
merged 5 commits into from
Mar 11, 2024
Merged

Commits on Mar 4, 2024

  1. Adds ARIA role support to Paper UIManager

    In react-native v0.73, the `role` prop was switched from setting its value to `accessibilityRole` to a standalone native prop.
    
    This wires up the native prop behavior in the Paper UIManager for react-native-windows.
    
    Here is the table of ARIA role to UIA role in this commit:
    |**ARIA role**|**UIA role**|
    |alert|Text|
    |alertdialog|Window|
    |application|Group|
    |article|Document|
    |banner|Text|
    |button|Button|
    |cell|DataItem|
    |checkbox|CheckBox|
    |columnheader|HeaderItem|
    |combobox|ComboBox|
    |complementary|Text|
    |contentinfo|Text|
    |definition|Text|
    |dialog|Window|
    |directory||
    |document|Document|
    |feed||
    |figure|Image|
    |form||
    |grid|DataGrid|
    |group|Group
    |heading|Text|
    |img|Image|
    |link|Hyperlink|
    |list|List|
    |listitem|ListItem|
    |log||
    |main||
    |marquee||
    |math||
    |menu|Menu|
    |menubar|MenuBar|
    |menuitem|MenuItem|
    |meter||
    |navigation||
    |none|Group|
    |note|Text|
    |option||
    |presentation||
    |progressbar|PrgressBar|
    |radio|RadioButton|
    |radiogroup|Group|
    |region|Group|
    |row|DataGrid|
    |rowgroup|Group|
    |rowheader|HeaderItem|
    |scrollbar|ScrollBar|
    |searchbox|Edit|
    |separator|Separator|
    |slider|Slider|
    |spinbutton|Spinner|
    |status|Text|
    |summary|Text|
    |switch|Group|
    |tab|TabItem|
    |table|Table|
    |tablist|Tab|
    |tabpanel|Group|
    |term|Text|
    |timer|Group|
    |toolbar|ToolBar|
    |tooltip|ToolTip|
    |tree|Tree|
    |treegrid|Tree|
    |treeitem|TreeItem|
    rozele committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    80e6c96 View commit details
    Browse the repository at this point in the history
  2. Change files

    rozele committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    ddb4eac View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Improves ARIA role to UIA role mappings

    Switches from ad hoc mappings to mappings defined here:
    https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-ariaspecification#w3c-aria-role-mapped-to-microsoft-active-accessibility-and-ui-automation
    
    Comments left inline for how the missing mappings were interpolated.
    rozele committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a762efe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47ed254 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Configuration menu
    Copy the full SHA
    e8226ae View commit details
    Browse the repository at this point in the history