From 8e691dba3a7d7159c64cbd88153ca5606e750466 Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:05:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(Toolbar):=20clean?= =?UTF-8?q?up=20button=20color=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/molecules/Toolbar/index.tsx | 27 +++++++--------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/src/components/molecules/Toolbar/index.tsx b/src/components/molecules/Toolbar/index.tsx index e037b3e..aeaeeb5 100644 --- a/src/components/molecules/Toolbar/index.tsx +++ b/src/components/molecules/Toolbar/index.tsx @@ -23,7 +23,7 @@ import MenuIcon from '@mui/icons-material/Menu' const AppBarButton = styled(Button)(({ theme }) => ({ textTransform: 'none', - color: 'inherit', + color: theme.palette.mode === 'dark' ? 'inherit' : 'text.secondary', ':hover': { backgroundColor: 'transparent', ...(theme.palette.mode === 'dark' && { @@ -131,32 +131,21 @@ const CustomToolbar: React.FC = ({ drawerWidth = 240, window to="/" disableRipple sx={theme => ({ - [theme.breakpoints.down('md')]: { - mx: 'auto', - }, - [theme.breakpoints.up('md')]: { - mr: 'auto', - }, + color: theme.palette.text.primary, + [theme.breakpoints.down('md')]: { mx: 'auto' }, + [theme.breakpoints.up('md')]: { mr: 'auto' }, })}> - - Michele Tartari - + Michele Tartari - - Home - + Home - - Projects - + Projects - - Curriculum - + Curriculum