necolas / react-native-web

Cross-platform React UI packages
https://necolas.github.io/react-native-web
MIT License
21.46k stars 1.77k forks source link

Pressable does not accept aria-disabled #2653

Closed leononame closed 3 months ago

leononame commented 3 months ago

Is there an existing issue for this?

Describe the issue

When building a button using Pressable, the aria-disabled prop is not actually forwarded into the DOM.

Expected behavior

Both the div and the button element in the linked sample should have aria-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

necolas commented 3 months ago

disabled maps to aria-disabled https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/Pressable/index.js#L204

leononame commented 3 months ago

Ok, understood! Thanks.