-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aligner for headless text fields/areas, similar to Button.Aligner #180
Comments
Ready for the next release for TextField and TextArea. I went with the Aligner approach to make sure DX is aligned with other components. To make sure there is not much additional overhead though, I've added a common internal aligner utility that works across mutliple component. Keeping it internal since there are dependencies on data-attributes and css variables to get the padding value instead of hardcoding them. |
One change I've added after the screenshot was made is to use alignment on all sides for inputs. That way View gaps will stay predictable since headless inputs padding is invisible on all sides |
Love this, thanks so much! |
Is your feature request related to a problem? Please describe.
Headless text fields/area still have padding, so become misaligned from the text. See example:
Describe the solution you'd like
Either no padding on headless options or an Aligner the same was we have for ghost Buttons
Describe alternatives you've considered
Manually changing the styling
The text was updated successfully, but these errors were encountered: