Text field with stepper
sindresorhus opened this issue · 0 comments
sindresorhus commented
When you have a text field for a number with a stepper on the right side, what’s the recommended distance between the text field and the stepper?
Some observations:
- Xcode Interface Builder: 2 points
- https://developer.apple.com/documentation/appkit/nsstepper: 8 points
- "Date & Time system preferences": 4 points
- “Voice Over Utility”: 6 points
DatePicker
in SwiftUI with only time component: 3 points
So basically no consistency.
I also noticed that the "Screen Time" system preferences put the stepper inside the text field. Not clear in what situations that's recommended.
The HIG doesn't say anything about the distance, unfortunately: https://developer.apple.com/design/human-interface-guidelines/macos/selectors/steppers/
Any opinions?