Skip to content

Conversation

@mariuscretu-cegeka
Copy link

This pull request enhances accessibility support for the MenuTrigger and MenuOption components by introducing new accessibility-related props and ensuring these props are passed down to the underlying elements. The changes improve the usability of these components for users relying on assistive technologies.

Accessibility Enhancements:

  • Added new accessibility props: Introduced accessible, accessibilityRole, and accessibilityLabel props to both MenuTrigger and MenuOption components to support better accessibility. These props are now included in the propTypes definitions.

  • Updated destructuring and prop forwarding:

    • Modified the destructuring of props in MenuTrigger and MenuOption to include the new accessibility props.
    • Ensured the new accessibility props are passed to the appropriate elements in the render methods.
  • run tests ✅
  • run lint ✅

Enhances MenuOption and MenuTrigger components with accessibility properties to improve screen reader and assistive technology support.

Adds accessible, accessibilityRole, and accessibilityLabel props that are properly forwarded to the underlying touchable components, ensuring better compliance with accessibility standards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant