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
There’s a couple good reasons for why we use text-indent, but I agree that there should be a first-class way to do right-aligned input fields; center-aligned too. We'll look into it at some point.
For now feel free to use inline style overrides to achieve that.
Use-case
In some use-case, it's a good idea to align number in text field to right, so it would be easy to compared with other fields.
Actual Result
Using
text-align: right
Result in no padding.
Using
direction: ltr
It does display number with padding but the cursor behavior is incorrect, cursor will goes right when pressing left arrow.
Desire result
Without changing the direction, it would be nice to have a way to properly align text right.
Cause
Since radix using
text-indent
for the padding. It only works with the direction of the text.Fix ??
Changing
text-indent
topadding-left
andpadding-right
seems to solve the problems.The text was updated successfully, but these errors were encountered: