From 3cc375e30ff4fc212d18419c44d0406b12d6d129 Mon Sep 17 00:00:00 2001 From: izhuravlev Date: Fri, 12 Feb 2021 15:41:08 +0300 Subject: [PATCH] Fixed issue #1682 - rewrote buttons to be clickable on the entire botton space --- .../src/components/Header/DesktopHeader.tsx | 36 +++++++++------- .../src/components/Header/MobileHeader.tsx | 43 ++++++++++++------- 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/src/frontend/next/src/components/Header/DesktopHeader.tsx b/src/frontend/next/src/components/Header/DesktopHeader.tsx index 250b36217e..9e7c86b3c0 100644 --- a/src/frontend/next/src/components/Header/DesktopHeader.tsx +++ b/src/frontend/next/src/components/Header/DesktopHeader.tsx @@ -28,7 +28,7 @@ const useStyles = makeStyles((theme) => ({ float: 'right', margin: '0 0.5rem 0 0.5rem', }, - links: { + buttonText: { color: theme.palette.primary.contrastText, fontFamily: 'Roboto, sans-serif', textDecoration: 'none', @@ -49,22 +49,28 @@ export default function DesktopHeader() {
- - + + + - - + + - - + + + + + + diff --git a/src/frontend/next/src/components/Header/MobileHeader.tsx b/src/frontend/next/src/components/Header/MobileHeader.tsx index adbde67db8..02c20a7040 100644 --- a/src/frontend/next/src/components/Header/MobileHeader.tsx +++ b/src/frontend/next/src/components/Header/MobileHeader.tsx @@ -32,7 +32,7 @@ const useStyles = makeStyles((theme) => ({ menuIcon: { fontSize: '2.5rem', }, - links: { + buttonText: { color: theme.palette.background.default, fontFamily: 'Roboto, sans-serif', textDecoration: 'none', @@ -46,6 +46,9 @@ const useStyles = makeStyles((theme) => ({ list: { width: 250, }, + sideList: { + padding: 0, + }, paper: { backgroundColor: theme.palette.primary.main, }, @@ -86,19 +89,21 @@ export default function MobileHeader() { onClick={toggleDrawer(side, false)} onKeyDown={toggleDrawer(side, false)} > - - - - Home - - + + + +

Home

+
+ - - - About - - + + + +

About

+
+ +
@@ -115,11 +120,17 @@ export default function MobileHeader() {
- - + + - - + + +