@@ -13,7 +13,7 @@ import { Link } from "react-router-dom"
1313const MetaDropDownItem = ( { className, children } ) => (
1414 React . cloneElement ( children , {
1515 className : trimSpaces ( `${ children . props . className }
16- px-4 py-2 flex flex-row items-center font-medium text-sm leading-5 text-gray-700 hover:text-gray-900 focus:text-gray-900 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none
16+ px-4 py-2 flex flex-row items-center font-medium text-sm leading-5 text-gray-700 hover:text-gray-900 hover:bg-gray-100
1717 ${ className } ` ) ,
1818 } )
1919)
@@ -36,7 +36,8 @@ const DropDown = () => {
3636
3737 < Meta . Transition >
3838 < button
39- className = "p-2 flex flex-row justify-center items-center text-gray-400 hover:text-gray-500 focus:text-gray-500 hover:bg-gray-100 focus:bg-gray-100 rounded-md focus:outline-none"
39+ className = "p-2 flex flex-row justify-center items-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 rounded-md"
40+ onPointerDown = { e => e . preventDefault ( ) }
4041 onClick = { ( ) => setOpen ( ! open ) }
4142 >
4243 < svg
@@ -64,7 +65,7 @@ const DropDown = () => {
6465 >
6566 { /* NOTE: Use origin-top-right for <Transition> */ }
6667 < div ref = { ref } className = "mt-2 absolute right-0 w-56 rounded-lg shadow-lg origin-top-right " >
67- < div className = "bg-white rounded-lg shadow-xs overflow-hidden " >
68+ < div className = "bg-white rounded-lg shadow-xs" >
6869 < div className = "py-1" >
6970 < MetaDropDownItem >
7071 < Link
@@ -133,7 +134,7 @@ const MetaNavItem = ({ className, children }) => (
133134 < Meta . Transition duration = { 75 } >
134135 { React . cloneElement ( children , {
135136 className : trimSpaces ( `${ children . props . className }
136- px-3 flex flex-row items-center focus:underline text-gray-900 hover:text-gray-500 focus:text-gray-500 focus:outline-none
137+ px-3 flex flex-row items-center text-gray-900 hover:text-gray-500
137138 ${ className } ` ) ,
138139 } ) }
139140 </ Meta . Transition >
@@ -145,12 +146,9 @@ const Nav = () => (
145146
146147 { /* LHS */ }
147148 < div className = "-mx-3 flex flex-row h-full" >
148- < MetaNavItem >
149- { /* NOTE: Use color: #000 because of <MetaNavItem> */ }
150- < Link style = { { fontSize : "50%" , color : "#000" } } to = { routes . HOME } >
151- < CodexLogo />
152- </ Link >
153- </ MetaNavItem >
149+ < Link className = "px-3 flex flex-row items-center" style = { { fontSize : "50%" } } to = { routes . HOME } >
150+ < CodexLogo />
151+ </ Link >
154152 </ div >
155153
156154 { /* RHS */ }
0 commit comments