Skip to content

Commit

Permalink
[Day] Accept font-family from typography (mui#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko authored Jun 1, 2020
1 parent 94e2935 commit 309f4f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/views/Calendar/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ const muiComponentConfig = { name: 'MuiPickersDay' };
export const useStyles = makeStyles(
theme => ({
day: {
...theme.typography.caption,
width: DAY_SIZE,
height: DAY_SIZE,
borderRadius: '50%',
padding: 0,
// background required here to prevent collides with the other days when animating with transition group
backgroundColor: theme.palette.background.paper,
color: theme.palette.text.primary,
fontSize: theme.typography.caption.fontSize,
fontWeight: theme.typography.fontWeightMedium,
'&:hover': {
backgroundColor: fade(theme.palette.action.active, theme.palette.action.hoverOpacity),
},
Expand Down

0 comments on commit 309f4f5

Please sign in to comment.