Replies: 1 comment
-
alternate idea: since the human interface guidelines suggest 48x48 pixels as the minimum touch area, people can use a non-Tailwind class for those dimensions. .touch-appropriate {
position: relative;
}
.touch-appropriate::before {
content: "";
position: absolute;
width: 48px;
height: 48px;
top: 50%;
left: 50%;
translate: -50% -50%;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on the tips contained in Build UIs that don't suck #3: What are these, buttons for ants?
Naming inspired by the property from React Native: https://reactnative.dev/docs/pressable#hitslop
Sample Usage:
Rough idea for the CSS:
Possible Issues:
position
property of the elementBeta Was this translation helpful? Give feedback.
All reactions