From 68346e075ac2b27ba114b671c760dfc7b14112ad Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Tue, 10 Aug 2021 00:24:02 -0400 Subject: [PATCH] fixed safari z-index issue with MaterialUI model style tweak. --- app/web/src/components/LoginModal/LoginModal.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/web/src/components/LoginModal/LoginModal.tsx b/app/web/src/components/LoginModal/LoginModal.tsx index e3fe2cd..1b83f8b 100644 --- a/app/web/src/components/LoginModal/LoginModal.tsx +++ b/app/web/src/components/LoginModal/LoginModal.tsx @@ -1,4 +1,5 @@ import { useState } from 'react' +import { makeStyles } from '@material-ui/core/styles'; import Dialog from '@material-ui/core/Dialog' import Tab from '@material-ui/core/Tab' import Tabs from '@material-ui/core/Tabs' @@ -10,6 +11,12 @@ import { toast } from '@redwoodjs/web/toast' import { Link, routes } from '@redwoodjs/router' import { subscribe } from 'src/helpers/subscribe' +const useStyles = makeStyles({ + root: { + transform: `translate3d(0,0,50px)`, + }, +}) + const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { const { logIn, signUp } = useAuth() @@ -20,6 +27,7 @@ const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { } const [checkBox, setCheckBox] = useState(true) const [error, setError] = useState('') + const classes = useStyles() const onSubmitSignUp = async ({ email, password, name, userName }) => { try { @@ -47,7 +55,7 @@ const LoginModal = ({ open, onClose, shouldStartWithSignup = false }) => { } } return ( - +