diff --git a/src/components/WorkspaceOptionsButton.js b/src/components/WorkspaceOptionsButton.js index 63fbf1967e..47c997ee60 100644 --- a/src/components/WorkspaceOptionsButton.js +++ b/src/components/WorkspaceOptionsButton.js @@ -5,15 +5,9 @@ import MoreHorizontalIcon from '@mui/icons-material/MoreHorizSharp'; import MiradorMenuButton from '../containers/MiradorMenuButton'; import WorkspaceOptionsMenu from '../containers/WorkspaceOptionsMenu'; -const StyledMiradorMenuButton = styled(MiradorMenuButton)(({ open, theme }) => { - const css = { - margin: theme.spacing(1), - }; - if (open) { - css.backgroundColor = theme.palette.action.selected; - } - return css; -}); +const StyledButton = styled(MiradorMenuButton)(({ theme }) => ({ + margin: theme.spacing(1), +})); /** * WorkspaceOptionsButton ~ @@ -61,14 +55,17 @@ export class WorkspaceOptionsButton extends Component { return ( <> - - - +