@@ -11,7 +11,6 @@ import useKeyboard from "@hooks/useKeyboard";
1111import ControllerIcon , { ControllerButton } from "@components/icons/controller-icon" ;
1212import { KeyPressAction } from "types" ;
1313import "./modal.css" ;
14- import { useActiveElement } from "@hooks/useActiveElement" ;
1514
1615const AUDIO_SRC = '/audio/nav.mp3' ;
1716
@@ -86,7 +85,7 @@ export function ModalClose({ menuButton }: { menuButton?: ModalMenuButton }) {
8685 < Link href = { menuButton . url ?? '' } onClick = { onMenuItemClick }
8786 className = ""
8887 ref = { menuButtonRef } >
89- < div className = "items-center justify-items-center align-items-center inline-flex select-none my-auto" >
88+ < div className = "text-xl items-center justify-items-center align-items-center inline-flex select-none my-auto" >
9089 < div className = "relative max-w-10" >
9190 < ControllerIcon icon = { menuButton . controllerIcon } className = "m-2" />
9291 </ div >
@@ -119,7 +118,7 @@ export function ModalClose({ menuButton }: { menuButton?: ModalMenuButton }) {
119118 < Link href = { menuButton . url ?? '' } onClick = { menuButton . action }
120119 className = ""
121120 ref = { menuButtonRef } >
122- < div className = "items-center justify-items-center align-items-center inline-flex select-none my-auto" >
121+ < div className = "text-xl items-center justify-items-center align-items-center inline-flex select-none my-auto" >
123122 < FontAwesomeIcon icon = { menuButton . mobileIcon } className = "w-7 h-7 aspect-square inline-flex my-auto max-w-10" />
124123 < span className = "mx-2 my-auto" > { menuButton . title } </ span >
125124 </ div >
@@ -148,7 +147,7 @@ export function ModalClose({ menuButton }: { menuButton?: ModalMenuButton }) {
148147 < Link href = { menuButton . url ?? '' } onClick = { menuButton . action }
149148 className = ""
150149 ref = { menuButtonRef } >
151- < div className = "items-center justify-items-center align-items-center inline-flex select-none my-auto" >
150+ < div className = "text-lg items-center justify-items-center align-items-center inline-flex select-none my-auto" >
152151 < kbd className = "h-9 w-13 px-2 py-1.5 text-gray-800 bg-gray-100 mx-0.75 border border-gray-200 rounded-lg dark:bg-gray-400/25 dark:text-white dark:border-gray-500/25" >
153152 { menuButton . key . toUpperCase ( ) }
154153 </ kbd >
@@ -161,8 +160,10 @@ export function ModalClose({ menuButton }: { menuButton?: ModalMenuButton }) {
161160 < div className = "modal-action grid text-white text-center object-center my-auto" >
162161 { /* need to set the href so that the user can close modal by clicking on the buttton */ }
163162 < Link href = "/" >
164- < div className = "justify-between align-items-center text-lg hover:animate-pulse select-none my-auto" >
165- < kbd className = "h-9 w-13 px-2 py-1.5 text-gray-800 bg-gray-100 mx-0.75 border border-gray-200 rounded-lg dark:bg-gray-400/25 dark:text-white dark:border-gray-500/25" > Esc</ kbd >
163+ < div className = "text-lg items-center justify-items-center align-items-center inline-flex select-none my-auto" >
164+ < kbd className = "h-9 w-13 px-2 py-1.5 text-gray-800 bg-gray-100 mx-0.75 border border-gray-200 rounded-lg dark:bg-gray-400/25 dark:text-white dark:border-gray-500/25 flex" >
165+ < span className = "my-auto inline-block align-middle" > Esc</ span >
166+ </ kbd >
166167 < span className = "mx-2 my-auto" > close</ span >
167168 </ div >
168169 </ Link >
0 commit comments