Commit d6c2579
feat(switch): ensure minimum 48x48 hit target for better accessibility (#3517)
* feat(switch): ensure minimum 48x48 hit target for better accessibility
Co-Authored-By: [email protected] <[email protected]>
* refactor: destructure props at top of render function
Co-Authored-By: [email protected] <[email protected]>
* refactor(switch): move hitSlop calculation to dedicated function
Co-Authored-By: [email protected] <[email protected]>
* refactor(switch): rename getHitSlopSize to getAccessibleHitSlop
Co-Authored-By: [email protected] <[email protected]>
* feat(switch): allow hitSlop override while maintaining default accessibility
Co-Authored-By: [email protected] <[email protected]>
* fix(switch): remove redundant hitSlop prop and fix prop spreading order
Co-Authored-By: [email protected] <[email protected]>
* chore(switch): remove unused import
Co-Authored-By: [email protected] <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>1 parent cc80598 commit d6c2579
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
153 | 166 | | |
154 | 167 | | |
| 168 | + | |
155 | 169 | | |
156 | 170 | | |
157 | 171 | | |
158 | 172 | | |
159 | 173 | | |
| 174 | + | |
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
| |||
0 commit comments