Skip to content

Commit

Permalink
added variation to the color of the border on hover and change the bo…
Browse files Browse the repository at this point in the history
…rder width to 1px
  • Loading branch information
essuraj committed Aug 12, 2018
1 parent e765767 commit 7edea1d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/material-ui/src/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const styles = theme => ({
flatSecondary: {},
/* Styles applied to the root element if `variant="outlined"`. */
outlined: {
border: `2px solid ${
border: `1px solid ${
theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'
}`,
},
Expand Down Expand Up @@ -131,13 +131,19 @@ export const styles = theme => ({
},
},
},
/* Styles applied to the root element if `variant="[contained | fab]"` and `color="primary"`. */
/* Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
outlinedPrimary: {
border: `2px solid ${theme.palette.primary.main}`,
border: `1px solid ${fade(theme.palette.primary.main, 0.5)}`,
'&:hover': {
border: `1px solid ${theme.palette.primary.main}`,
},
},
/* Styles applied to the root element if `variant="[contained | fab]"` and `color="secondary"`. */
/* Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
outlinedSecondary: {
border: `2px solid ${theme.palette.secondary.main}`,
border: `1px solid ${fade(theme.palette.secondary.main, 0.5)}`,
'&:hover': {
border: `1px solid ${theme.palette.secondary.main}`,
},
},
/* Styles applied to the root element for backwards compatibility with legacy variant naming. */
raised: {}, // legacy
Expand Down

0 comments on commit 7edea1d

Please sign in to comment.