Skip to content

Commit 4dd5abc

Browse files
🐛 Fixed padding on navbar icon and added hover to social media icons (#4)
1 parent c2b16ce commit 4dd5abc

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/NavBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ const NavBar = (): ReactElement => {
5353
aria-label="open drawer"
5454
onClick={toggleDrawer(true)}
5555
edge="start"
56-
sx={{ display: { xs: 'flex', md: 'none' } }}
56+
sx={{ display: { xs: 'flex', md: 'none' }}}
5757
>
5858
<MenuIcon />
5959
</IconButton>
6060
<Box sx={{ display: { xs: 'none', md: 'flex' }, alignItems: 'center' } }>
6161
<Link to="/" style={{ textDecoration: 'none', marginRight: '1rem', flexShrink: 0 }}>
62-
<Avatar src={logo} alt="Logo WDT" sx={{ width: '100%', height: '100%', maxWidth: '50px' }} />
62+
<Avatar src={logo} alt="Logo WDT" sx={{ width: '100%', height: '100%', maxWidth: '50px', py: 1 }} />
6363
</Link>
6464
<Link to="/sponsorship" style={{ textDecoration: 'none', height: '100%' }}>
6565
<Button className={isActive('/sponsorship') ? 'active' : '' } sx={{ height: '100%', borderRadius: '0' }}>

src/theme.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ const theme = createTheme({
1313
}
1414
},
1515
components: {
16+
MuiIconButton: {
17+
styleOverrides: {
18+
root: {
19+
'&:hover': {
20+
backgroundColor: 'rgba(51,152,203,.9)',
21+
color: 'white',
22+
},
23+
'&.active': {
24+
backgroundColor: 'rgba(51,152,203,.9)',
25+
color: 'white',
26+
},
27+
},
28+
},
29+
},
1630
MuiButton: {
1731
styleOverrides: {
1832
root: {

0 commit comments

Comments
 (0)