Skip to content

Commit 25cdfa7

Browse files
committed
Fix z-index of FrameworkPicker in website
1 parent 750b759 commit 25cdfa7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

website/src/components/FrameworkPicker.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ export function FrameworkPicker(props: FrameworkPickerProps) {
4646
* Returns the icon of the framework.
4747
*/
4848
const getIcon = (framework: string) =>
49-
({ solid: SolidIcon, qwik: QwikIcon, preact: PreactIcon, react: ReactIcon }[
50-
framework
51-
]);
49+
({
50+
solid: SolidIcon,
51+
qwik: QwikIcon,
52+
preact: PreactIcon,
53+
react: ReactIcon,
54+
})[framework];
5255

5356
/**
5457
* Returns the pathname to the framework.
@@ -79,7 +82,7 @@ export function FrameworkPicker(props: FrameworkPickerProps) {
7982
</button>
8083
<nav
8184
class={clsx(
82-
'absolute z-10 w-full origin-top rounded-xl border-2 border-slate-200 bg-white/90 py-2 backdrop-blur duration-200 hover:border-slate-300 dark:border-slate-800 dark:bg-gray-900/90 dark:hover:border-slate-700',
85+
'absolute z-30 w-full origin-top rounded-xl border-2 border-slate-200 bg-white/90 py-2 backdrop-blur duration-200 hover:border-slate-300 dark:border-slate-800 dark:bg-gray-900/90 dark:hover:border-slate-700',
8386
getOpen() ? 'translate-y-2' : 'invisible scale-y-75 opacity-0'
8487
)}
8588
aria-hidden={!getOpen()}

0 commit comments

Comments
 (0)