Skip to content

How can I align input field with the buttons? #3959

Answered by pskelin
nemethmik asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Miklos,
thanks for the nice words, really glad to hear positive experiences.

The misalignment of the components has been reported a couple of times and we plan to improve the default alignment of the components. You can track the progress here:
#3492

Until we fix this, you can use the suggested solution of wrapping them in a div and styling them with dislay: flex and aligning them vertically with align-items: center; as suggested in this comment and the linked sample:
#3492 (comment)

It is a bit more code, but might be still necessary for a mixed case when you have other web components or even native elements that might also be misaligned.
Regards,
Peter

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nemethmik
Comment options

Answer selected by nemethmik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants