From f6268810be87ee56c367a40800fb54aeedd941af Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 10 Oct 2020 02:34:02 -0700 Subject: [PATCH] make invisible DTI title text not clickable --- src/app/GlobalHeader.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/GlobalHeader.js b/src/app/GlobalHeader.js index 8b39501..5155a3a 100644 --- a/src/app/GlobalHeader.js +++ b/src/app/GlobalHeader.js @@ -42,9 +42,15 @@ function HomeLink(props) { display="flex" alignItems="center" role="group" + // HACK: When we're on the homepage, I want the title "Dress to Impress" + // to stay visible for transition, but I don't want it to be a + // click target. To do this, I constrain the size of the container, + // and also remove pointer events from the overflowing children. + maxWidth={isHomePage ? "32px" : "none"} {...props} > @@ -86,6 +93,7 @@ function HomeLink(props) { />