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] Fix text field standard visual regression #25676

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Apr 8, 2021

I have noticed the issue looking into #25657.

v4 (OK):
Screenshot 2021-04-09 at 00 15 03

https://material-ui.com/components/autocomplete/#playground

HEAD (KO):
Screenshot 2021-04-09 at 00 15 41

https://next.material-ui.com/components/autocomplete/#playground

The visual regression should confirm the fix work (bring us back to v4). Regarding why the regression has happened. It's related to a recent change of the <input> line-height in the InputBase component to account for fonts with long descended and ascender characters. It's not related to emotion.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! labels Apr 8, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Apr 8, 2021

Details of bundle changes

Generated by 🚫 dangerJS against c23170f

@oliviertassinari
Copy link
Member Author

The visual regression should confirm the fix work (bring us back to v4).

Oh well, we have no visual regression coverage. I guess it's why we introduced the regression in the first place. Should we add one?

@eps1lon
Copy link
Member

eps1lon commented Apr 9, 2021

The visual regression should confirm the fix work (bring us back to v4).

Oh well, we have no visual regression coverage. I guess it's why we introduced the regression in the first place. Should we add one?

Please 😊

@Saravia83c

This comment has been minimized.

@oliviertassinari
Copy link
Member Author

Visual regression test added, ready for review

@eps1lon eps1lon merged commit a2b5197 into mui:next Apr 12, 2021
@oliviertassinari oliviertassinari deleted the fix-autocomplete-spacing branch April 12, 2021 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants