-
Notifications
You must be signed in to change notification settings - Fork 735
feat(switch): ensure minimum 48x48 hit target for better accessibility #3517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Please update the pr description according to our template. |
top: verticalPadding, | ||
bottom: verticalPadding, | ||
left: horizontalPadding, | ||
right: horizontalPadding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user should be allowed to override the hitSlop
…ibility Co-Authored-By: [email protected] <[email protected]>
TouchableOpacity already has hitSlop in its props. So its already typed and the user can pass it. The {...others} spread of the props will have it so just passing hitSlop before this will override the hitSlop if its passed in the props. Please fix that |
Description
Improves Switch component accessibility by ensuring a minimum touch target size of 48x48 pixels while allowing custom hitSlop overrides.
Changelog
Switch: Added default 48x48 touch target with support for custom hitSlop overrides
Additional info
MADS-4591