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

[TextField] Fix height inconsistency #15217

Merged
merged 8 commits into from
Apr 7, 2019
Merged

[TextField] Fix height inconsistency #15217

merged 8 commits into from
Apr 7, 2019

Conversation

gautam-pahuja
Copy link
Contributor

@gautam-pahuja gautam-pahuja commented Apr 5, 2019

The changes committed fixes #15146

Breaking change.

Remove the inputType class.

@gautam-pahuja gautam-pahuja changed the title Fix TextField height inconsistency [TextField]: Fix TextField height inconsistency Apr 5, 2019
@adeelibr
Copy link
Contributor

adeelibr commented Apr 5, 2019

Welcome to Material UI 🍰 Give me a treat 🌮 🎉 @gautam-relayr

@mui-pr-bot
Copy link

mui-pr-bot commented Apr 5, 2019

Details of bundle changes.

Comparing: 4cfb8bd...61b43b4

bundle parsed diff gzip diff prev parsed current parsed prev gzip current gzip
@material-ui/core -0.02% -0.02% 349,286 349,227 89,846 89,828
@material-ui/core/Paper 0.00% 0.00% 68,404 68,404 20,052 20,052
@material-ui/core/Paper.esm 0.00% 0.00% 60,735 60,735 18,789 18,789
@material-ui/core/Popper 0.00% 0.00% 34,825 34,825 11,885 11,885
@material-ui/core/styles/createMuiTheme 0.00% 0.00% 17,877 17,877 5,962 5,962
@material-ui/core/useMediaQuery 0.00% 0.00% 2,463 2,463 1,043 1,043
@material-ui/lab 0.00% 0.00% 147,978 147,978 43,904 43,904
@material-ui/styles 0.00% 0.00% 53,143 53,143 15,440 15,440
@material-ui/system 0.00% 0.00% 17,132 17,132 4,523 4,523
Button 0.00% 0.00% 88,564 88,564 26,399 26,399
Modal 0.00% 0.00% 82,583 82,583 24,778 24,778
colorManipulator 0.00% 0.00% 3,745 3,745 1,537 1,537
docs.landing 0.00% 0.00% 49,914 49,914 10,815 10,815
docs.main -0.00% -0.00% 645,367 645,337 200,716 200,706
packages/material-ui/build/umd/material-ui.production.min.js -0.02% -0.03% 297,774 297,717 82,872 82,848

Generated by 🚫 dangerJS against 61b43b4

@gautam-pahuja
Copy link
Contributor Author

gautam-pahuja commented Apr 5, 2019

@oliviertassinari I did the changes, updated the TS spec and ran prettier. It looks like the tests are still failing. Is it because Input inherits InputBase and I have to remove inputType from InputBase as well?

Can you please help.

Thanks 😄

@oliviertassinari oliviertassinari changed the title [TextField]: Fix TextField height inconsistency [TextField] Fix height inconsistency Apr 6, 2019
@oliviertassinari oliviertassinari added the component: text field This is the name of the generic UI component, not the React module! label Apr 6, 2019
@oliviertassinari
Copy link
Member

The solution doesn't work, let's try something else.

Capture d’écran 2019-04-06 à 17 31 31

@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Apr 6, 2019
@@ -85,8 +85,6 @@ export const styles = theme => {
inputMarginDense: {},
/* Styles applied to the `input` element if `multiline={true}`. */
inputMultiline: {},
/* Styles applied to the `input` element if `type` is not "text"`. */
inputType: {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document this breaking change in the changelog.

@gautam-pahuja
Copy link
Contributor Author

Thanks @oliviertassinari and @eps1lon for all the help.
👍

@eps1lon eps1lon mentioned this pull request Apr 17, 2019
56 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change bug 🐛 Something doesn't work component: text field 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.

TextField is ever so slightly smaller in default mode than select
5 participants