Skip to content

Commit

Permalink
fix: add a hover color for buttons in the period selectors. (#9125)
Browse files Browse the repository at this point in the history
Adds the same hover color as for the sidebar. Also adds a transition
animation.
  • Loading branch information
thomasheartman authored Jan 21, 2025
1 parent 5846952 commit e4eab45
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const Wrapper = styled('article')(({ theme }) => ({
padding: theme.spacing(0.5),
borderRadius: theme.shape.borderRadius,
color: theme.palette.text.primary,
transition: 'background-color 0.2s ease',

'&.selected': {
backgroundColor: theme.palette.secondary.light,
Expand All @@ -82,6 +83,9 @@ const Wrapper = styled('article')(({ theme }) => ({
cursor: 'default',
color: theme.palette.text.disabled,
},
'button:hover': {
backgroundColor: theme.palette.action.hover,
},
}));

const MonthSelector = styled('article')(({ theme }) => ({
Expand Down

0 comments on commit e4eab45

Please sign in to comment.