Skip to content

Commit

Permalink
[InputAdornment] Fix flexbox alignment bug for IE (mui#12975)
Browse files Browse the repository at this point in the history
* InputAdornment: Fix flexbox alignment bug for IE

* let's merge
  • Loading branch information
oliviertassinari authored and marcelpanse committed Oct 2, 2018
1 parent a5d9ba8 commit 701264e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/demos/text-fields/FilledInputAdornments.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const styles = theme => ({
margin: theme.spacing.unit,
},
textField: {
flexBasis: 280,
flexBasis: 200,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const styles = theme => ({
margin: theme.spacing.unit,
},
textField: {
flexBasis: 280,
flexBasis: 200,
},
});

Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/InputAdornment/InputAdornment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const styles = {
/* Styles applied to the root element. */
root: {
display: 'flex',
height: '0.01em', // Fix IE 11 flexbox alignment. To remove at some point.
maxHeight: '2em',
alignItems: 'center',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/InputBase/InputBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const styles = theme => {
display: 'block',
// Make the flex item shrink with Firefox
minWidth: 0,
flexGrow: 1,
width: '100%', // Fix IE11 width issue
'&::-webkit-input-placeholder': placeholder,
'&::-moz-placeholder': placeholder, // Firefox 19+
'&:-ms-input-placeholder': placeholder, // IE 11
Expand Down

0 comments on commit 701264e

Please sign in to comment.