From e223ccca54c2988703c35842ef18147def93cc1d Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 28 May 2024 17:46:15 -0300 Subject: [PATCH] refine menu item styles --- docs/src/components/action/MuiLogoMenu.tsx | 25 ++++++++++++++-------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/src/components/action/MuiLogoMenu.tsx b/docs/src/components/action/MuiLogoMenu.tsx index d0b6000c77a78a..811a9887cbc001 100644 --- a/docs/src/components/action/MuiLogoMenu.tsx +++ b/docs/src/components/action/MuiLogoMenu.tsx @@ -68,20 +68,27 @@ export default function MuiLogoMenu({ smallerMargin, marginLeft }: MuiLogoMenuPr anchorPosition={ contextMenu !== null ? { top: contextMenu.mouseY, left: contextMenu.mouseX } : undefined } + sx={(theme) => ({ + '& .MuiMenuItem-root': { + '& * path, .MuiSvgIcon-root': { + fill: (theme.vars || theme).palette.text.tertiary, + color: (theme.vars || theme).palette.text.tertiary, + }, + '&:hover, &:focus': { + '& * path, .MuiSvgIcon-root': { + fill: (theme.vars || theme).palette.text.primary, + color: (theme.vars || theme).palette.text.primary, + }, + }, + }, + })} > handleCopy(logo)}> - ({ - mr: 1, - '> path': { fill: (theme.vars || theme).palette.text.tertiary }, - })} - /> + Copy logo as SVG handleCopy(logoWordmark)}> - + Copy wordmark as SVG