Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/components/anonymous.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const styles = () => ({
'&:hover': {
background: '#eee',
},
'&:focus-visible': {
outline: '2px solid #fff',
outlineOffset: 2,
},
},
buttonText: {
fontSize: 18,
Expand Down Expand Up @@ -148,7 +152,7 @@ class AnonymousLanding extends Component {
<img className={classes.buttonImage} src={AuthGoogleIcon} alt="" />
<Typography className={classes.buttonText}>Sign in with Google</Typography>
</a>
<a onClick={() => AppleID.auth.signIn()} className={classes.logInButton}>
<a href="#" role="button" onClick={(e) => { e.preventDefault(); AppleID.auth.signIn(); }} className={classes.logInButton}>
<img className={classes.buttonImage} src={AuthAppleIcon} alt="" />
<Typography className={classes.buttonText}>Sign in with Apple</Typography>
</a>
Expand All @@ -162,7 +166,7 @@ class AnonymousLanding extends Component {
paired your comma device.
</span>

<a onClick={loginAsDemoUser}
<a href="#" role="button" onClick={(e) => { e.preventDefault(); loginAsDemoUser(); }}
className="flex items-center pl-4 pr-3 py-2 font-medium border border-white rounded-full hover:bg-[rgba(255,255,255,0.1)] active:bg-[rgba(255,255,255,0.2)] transition-colors"
style={{ height: 0, overflow: 'hidden', opacity: 0 }}
>
Expand Down
Loading