mirror of
https://github.com/vercel/commerce.git
synced 2025-09-07 16:30:17 +00:00
Some interactions
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
@screen lg {
|
||||
@apply absolute right-0 w-screen;
|
||||
max-width: 160px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
& .dropdownMenuContainer {
|
||||
@@ -15,8 +15,12 @@
|
||||
}
|
||||
|
||||
& .link {
|
||||
@apply cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900;
|
||||
@apply flex space-x-2 cursor-pointer px-6 py-3 block space-y-1 hover:bg-accents-1 transition ease-in-out duration-150 text-base leading-6 font-medium text-gray-900 items-center;
|
||||
text-transform: capitalize;
|
||||
|
||||
& .icons svg {
|
||||
@apply w-6 h-6;
|
||||
}
|
||||
}
|
||||
|
||||
&.off {
|
||||
|
@@ -9,7 +9,7 @@ import {
|
||||
} from '@react-aria/overlays'
|
||||
import Link from 'next/link'
|
||||
import cn from 'classnames'
|
||||
|
||||
import { Moon, Sun } from '@components/icon'
|
||||
interface DropdownMenuProps {
|
||||
onClose: () => void
|
||||
innerRef: React.MutableRefObject<HTMLInputElement>
|
||||
@@ -54,7 +54,12 @@ const DropdownMenu: FC<DropdownMenuProps> = ({
|
||||
theme === 'dark' ? setTheme('light') : setTheme('dark')
|
||||
}
|
||||
>
|
||||
Theme: <strong>{theme}</strong>
|
||||
<span>
|
||||
Theme: <strong>{theme}</strong>{' '}
|
||||
</span>
|
||||
<span className={s.icons}>
|
||||
{theme === 'dark' ? <Moon /> : <Sun />}
|
||||
</span>
|
||||
</a>
|
||||
<Link href="#">
|
||||
<a className={cn(s.link, 'border-t border-accents-2 mt-4')}>
|
||||
|
Reference in New Issue
Block a user