Uh oh!
There was an error while loading. Please reload this page.
[0.73] Fix new role prop after JS-Shim was removed by Meta - #2100
[0.73] Fix new role prop after JS-Shim was removed by Meta#2100Alicia Drummond (FalseLobster) merged 10 commits into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Saad Najmi (Saadnajmi)
commented
Mar 21, 2024
An aside, we'll want to eventually also implement for Fabric, but not blocking for 0.73 |
Saad Najmi (Saadnajmi)
commented
Mar 21, 2024
Q: Would it make sense for our |
Alicia Drummond (FalseLobster)
commented
Mar 21, 2024
Maybe, I'm open to it. I kinda suspect at some point Meta will drop accessibilityRole like they did accessibilityTraits (even though our impl still has accessibilityTraits). I think we run the risk internally of breaking partners who are using accessibilityRole if we silently change some mappings for them, whereas only applying the new mappings to the new values to the new prop feels safe, which is worth considering, but I suppose that's why you're calling out the feature flag :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
## Summary: main targeted PR of #2100 Prior to 0.73, the new `role` prop was remapped to `accessibilityRole` on the JS-side. Starting with react#37304, the work needs to be completed on the native side. Since the new prop is ARIA inspired, the mappings are taking from the [ARIA Core AAM](https://www.w3.org/TR/core-aam-1.2/#mapping_role_table) which disagrees with some of the mappings used in the old `accessibilityRole` prop. Users of the old prop are unaffected, but the new prop will take the mappings from the spec. ## Test Plan: Tested a variety of permutations of accessibilityRole and role to confirm the behavior looks correct in Accessibility Inspector
Summary:
Prior to 0.73, the new
roleprop was remapped toaccessibilityRoleon the JS-side. Starting with react#37304, the work needs to be completed on the native side. Since the new prop is ARIA inspired, the mappings are taking from the ARIA Core AAM which disagrees with some of the mappings used in the oldaccessibilityRoleprop. Users of the old prop are unaffected, but the new prop will take the mappings from the spec.Test Plan:
Tested a variety of permutations of accessibilityRole and role to confirm the behavior looks correct in Accessibility Inspector