Skip to content
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

Autocomplete: end adornment placement of TextField #42680

Open
stevepennings opened this issue Jun 18, 2024 · 2 comments
Open

Autocomplete: end adornment placement of TextField #42680

stevepennings opened this issue Jun 18, 2024 · 2 comments
Assignees
Labels
component: autocomplete This is the name of the generic UI component, not the React module! component: text field This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@stevepennings
Copy link

stevepennings commented Jun 18, 2024

Steps to reproduce

Here's a sandbox of my 'bare-minimum implementation'.

Current behavior

Would it be possible to get the end adornment investigated with the 'standard' and 'filled' variant in mind? The spacing of the InputBase in the TextField is very different when wrapped in the Autocomplete.

If I miss something in my implementation, I'd be very grateful for support.

Expected behavior

The EndAdornment of the TextField having the same vertical placing as the EndAdornment of the Autocomplete.

Context

I've got a custom TextField component extending the TextField component of MUI. I'm trying to make the custom Textfield compatible with the Autocomplete of MUI. The 'filled' and 'standard' are surprisingly not behaving the same as 'outlined'.

Your environment

Search keywords: component:autocomplete

@stevepennings stevepennings added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 18, 2024
@zannager zannager added component: text field This is the name of the generic UI component, not the React module! component: autocomplete This is the name of the generic UI component, not the React module! labels Jun 18, 2024
@steve-pennings
Copy link

Additionally I'd like to mention that the end adornment of the AutoComplete creates more padding once a value has been selected. When hovered the clear button shows itself <> hidden with the same padding. Consequently, the end adornment also ends up having odd spacing from the right when it's not hovered. Somehow I can't believe I'm the only one facing this issue, but I truly could not find similar issues. Apologies if there are...

@mnajdova mnajdova assigned danilo-leal and unassigned mj12albert Jun 19, 2024
@mnajdova mnajdova added the design This is about UI or UX design, please involve a designer label Jun 19, 2024
@steve-pennings
Copy link

Just found this issue that may have something to do with this one:
#28465 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! component: text field This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

6 participants