Skip to content

Commit

Permalink
fix mui#38944 background color of the default pagination component to…
Browse files Browse the repository at this point in the history
…change to slight dark when hovered
  • Loading branch information
ValkonX33 committed Sep 29, 2023
1 parent 07730e8 commit 865900f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/PaginationItem/PaginationItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const PaginationItemPage = styled(ButtonBase, {
backgroundColor: (theme.vars || theme).palette.action.selected,
'&:hover': {
backgroundColor: theme.vars
? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`
? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))`
: alpha(
theme.palette.action.selected,
theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity,
Expand All @@ -138,7 +138,7 @@ const PaginationItemPage = styled(ButtonBase, {
},
[`&.${paginationItemClasses.focusVisible}`]: {
backgroundColor: theme.vars
? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))`
? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))`
: alpha(
theme.palette.action.selected,
theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity,
Expand Down

0 comments on commit 865900f

Please sign in to comment.