Skip to content

Commit

Permalink
change the tooltip color
Browse files Browse the repository at this point in the history
  • Loading branch information
jjisabi committed Apr 23, 2024
1 parent 9dbaa56 commit 2690f86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mui-material/src/SpeedDialAction/SpeedDialAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ const SpeedDialAction = React.forwardRef(function SpeedDialAction(inProps, ref)
onClose={handleTooltipClose}
onOpen={handleTooltipOpen}
open={open && (tooltipOpen || tooltipOpenProp)}
slotProps={{
tooltip: {
sx: (theme) => ({
backgroundColor:
tooltipOpenProp === true ? (theme.vars || theme).palette.background.paper : '',
color: tooltipOpenProp === true ? (theme.vars || theme).palette.text.secondary : '',
}),
},
}}
classes={TooltipClasses}
{...other}
>
Expand Down

0 comments on commit 2690f86

Please sign in to comment.