Skip to content

Commit

Permalink
feat: remove user tap highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
javigaralva committed Nov 4, 2022
1 parent 7f34422 commit 9dbcebc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/javigaralva/password-generator-app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.javigaralva-no-tap-highlight {
-webkit-tap-highlight-color: transparent;
}
4 changes: 3 additions & 1 deletion src/components/javigaralva/password-generator-app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './password-generator-app.css'

import { useState, useEffect, type ChangeEventHandler } from 'react'
import { sample } from './utils/sample'
import { ColorizedPassword } from './components/colorized-password'
Expand Down Expand Up @@ -86,7 +88,7 @@ export default function Main() {
}, [passwordLength])

return (
<div className='w-screen h-screen bg-stone-800'>
<div className='javigaralva-no-tap-highlight w-screen h-screen bg-stone-800 select-none'>
<div className='flex place-content-center h-screen'>
<div className='flex flex-col min-w-100 place-items-center justify-evenly'>
<div className='min-h-min mx-10 text-center mt-32'>
Expand Down

0 comments on commit 9dbcebc

Please sign in to comment.