Skip to content

Commit

Permalink
[Pagination] Fix background color on hover and keyboard focus when us…
Browse files Browse the repository at this point in the history
…ing CSS theme variables (#39220)

Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
ValkonX33 and ZeeshanTamboli committed Oct 5, 2023
1 parent 32e8c03 commit dd6297d
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 dd6297d

Please sign in to comment.