Closed leononame closed 3 months ago
When building a button using Pressable, the aria-disabled prop is not actually forwarded into the DOM.
Pressable
aria-disabled
Both the div and the button element in the linked sample should have aria-disabled set.
div
button
rnw 0.19.10, all browsers
https://codesandbox.io/p/sandbox/tender-khorana-y3zgl6
No response
disabled maps to aria-disabled https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Pressable/index.js#L204
disabled
Ok, understood! Thanks.
Is there an existing issue for this?
Describe the issue
When building a button using
Pressable
, thearia-disabled
prop is not actually forwarded into the DOM.Expected behavior
Both the
div
and thebutton
element in the linked sample should havearia-disabled
set.Steps to reproduce
rnw 0.19.10, all browsers
Test case
https://codesandbox.io/p/sandbox/tender-khorana-y3zgl6
Additional comments
No response