From efc15ceb6d6a0e3c09d3e4f28026357ab4e77056 Mon Sep 17 00:00:00 2001 From: Adrian Pascu <1521321+adipascu@users.noreply.github.com> Date: Tue, 18 Dec 2018 01:21:33 +0200 Subject: [PATCH 1/2] Fix text alignment by reducing button height Fix #13926 --- packages/material-ui/src/Button/Button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui/src/Button/Button.js b/packages/material-ui/src/Button/Button.js index 3f83f6cf5ed0da..b0ec6a4d6896fa 100644 --- a/packages/material-ui/src/Button/Button.js +++ b/packages/material-ui/src/Button/Button.js @@ -17,7 +17,7 @@ export const styles = theme => ({ boxSizing: 'border-box', minWidth: 64, minHeight: 36, - padding: '8px 16px', + padding: '6px 16px', borderRadius: theme.shape.borderRadius, color: theme.palette.text.primary, transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], { From d34db7a177eef82268376d9e63ee576f35995587 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 18 Dec 2018 20:09:48 +0100 Subject: [PATCH 2/2] a second try --- docs/src/pages/demos/buttons/CustomizedButtons.js | 6 +----- packages/material-ui/src/Button/Button.js | 10 +++++----- packages/material-ui/src/ListItemText/ListItemText.js | 10 +++++++--- .../material-ui/src/ListItemText/ListItemText.test.js | 4 ++-- packages/material-ui/src/styles/createTypography.js | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/src/pages/demos/buttons/CustomizedButtons.js b/docs/src/pages/demos/buttons/CustomizedButtons.js index d6109a89de44ef..d70ff7d5a397b7 100644 --- a/docs/src/pages/demos/buttons/CustomizedButtons.js +++ b/docs/src/pages/demos/buttons/CustomizedButtons.js @@ -7,10 +7,6 @@ import purple from '@material-ui/core/colors/purple'; import green from '@material-ui/core/colors/green'; const styles = theme => ({ - container: { - display: 'flex', - flexWrap: 'wrap', - }, margin: { margin: theme.spacing.unit, }, @@ -69,7 +65,7 @@ function CustomizedInputs(props) { const { classes } = props; return ( -
+