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] Correct padding of filled Autocomplete #35640

Merged

Conversation

michaldudak
Copy link
Member

@michaldudak michaldudak commented Dec 27, 2022

A filled variant of Autocomplete with hiddenLabel has a different height than a TextField with a similar props. This PR restores the paddings of the Autocomplete's underlying input to match the TextField.

Before:
https://codesandbox.io/s/stoic-williamson-g14hhu?file=/demo.tsx

After:
https://codesandbox.io/s/sad-carson-0jqtvr?file=/demo.tsx

Fixes #34744

@michaldudak michaldudak added the component: autocomplete This is the name of the generic UI component, not the React module! label Dec 27, 2022
@mui-bot
Copy link

mui-bot commented Dec 27, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-35640--material-ui.netlify.app/

Details of bundle changes

Generated by 🚫 dangerJS against e878902

@michaldudak
Copy link
Member Author

The Argos failed check is expected. Now the filled Autocomplete with hiddenLabel has the same size as an input.

@michaldudak michaldudak marked this pull request as ready for review December 27, 2022 14:12
@michaldudak michaldudak merged commit a078bb3 into mui:master Feb 8, 2023
@michaldudak michaldudak deleted the iss/34744-filled-autocomplete-size branch February 8, 2023 12:53
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!
Projects
None yet
3 participants