Skip to content

accessibilityState props not applied in Web rendering (FAB) #4705

@shiwofeiwo

Description

@shiwofeiwo

Description:

When using the FAB component from React Native Paper and providing an accessibilityState prop (e.g. { disabled: false, selected: true, busy: true, expanded: true }), the expected ARIA attributes (e.g. aria-selected, aria-busy, aria-expanded) do not appear in the rendered HTML on web (via React Native Web).

This breaks expected accessibility behavior for screen readers on web.

Current behaviour

These ARIA attributes are missing in the rendered output.

Expected behaviour

On Web, accessibilityState should be correctly mapped to corresponding ARIA attributes according to React Native Web's behavior.

How to reproduce?

Image

Preview

What have you tried so far?

Your Environment

software version
ios x
android x
react-native x.x.x
react-native-paper x.x.x
node x.x.x
npm or yarn x.x.x
expo sdk x.x.x

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions