You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any particular reason why NumberInput has monospace font while TextInput has a normal one?
I've encountered this because we have our fonts and monospace variant is bolder, so TextInput & NumberInput alongside each other look starkly different
The text was updated successfully, but these errors were encountered:
Yes number input has mono space to account for non-numerical character that may be in a number input like increment names. This way the spacing of the characters is equal for alignment purposes.
The numerals themselves are actually the same glyphs in mono and sans (besides 0) so there isn't much of a visual difference unless you're using non-numerals.
Other components that use mono in the field include date picker for similar reasons.
carbon-components
carbon-components-react
Detailed description
Is there any particular reason why NumberInput has monospace font while TextInput has a normal one?
I've encountered this because we have our fonts and monospace variant is bolder, so
TextInput
&NumberInput
alongside each other look starkly differentThe text was updated successfully, but these errors were encountered: