Skip to content

Commit 01031e3

Browse files
committed
fix some z-index bugs
1 parent 8f1f116 commit 01031e3

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

playground/components/header.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const Header: Component<{
6969

7070
return (
7171
<header
72-
class="p-2 flex text-sm justify-between items-center bg-brand-default text-white z-20"
72+
class="p-2 flex text-sm justify-between items-center bg-brand-default text-white"
7373
classList={{ 'md:col-span-3': !props.isHorizontal }}
7474
>
7575
<h1 class="flex items-center space-x-4 uppercase leading-0 tracking-widest">
@@ -80,7 +80,6 @@ export const Header: Component<{
8080
</h1>
8181
<div class="flex items-center space-x-2">
8282
<Dismiss
83-
class="z-10"
8483
classList={{ 'absolute top-[53px] right-[10px] w-[fit-content]': showMenu() }}
8584
menuButton={() => menuBtnEl}
8685
open={showMenu}
@@ -183,7 +182,7 @@ export const Header: Component<{
183182
classList={{
184183
'border-white border': showMenu(),
185184
}}
186-
class="z-40 px-3 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100 visible relative md:hidden m-0 mr-[10px]"
185+
class="px-3 py-2 focus:outline-none focus:ring-1 rounded text-white opacity-80 hover:opacity-100 visible relative md:hidden m-0 mr-[10px]"
187186
title="Mobile Menu Button"
188187
ref={menuBtnEl}
189188
>

src/components/repl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const Repl: Component<ReplProps> = (props) => {
268268
(props.ref as (el: HTMLDivElement) => void)(el);
269269
}
270270
}}
271-
class="relative grid bg-blueGray-50 h-full overflow-hidden text-blueGray-900 dark:text-blueGray-50 font-sans z-50"
271+
class="relative grid bg-blueGray-50 h-full text-blueGray-900 dark:text-blueGray-50 font-sans"
272272
classList={{
273273
'wrapper--forced': props.isHorizontal,
274274
wrapper: !props.isHorizontal,

src/components/tab/item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Component, JSX } from 'solid-js';
33
export const TabItem: Component<Props> = (props) => {
44
return (
55
<li
6-
class={`relative z-10 inline-flex text-sm font-sans leading-snug items-center bg-blueGray-500 bg-opacity-0 hover:bg-opacity-5 overflow-hidden space-x-2 border-solid border-brand-default dark:border-gray-200 border-opacity-5 dark:border-opacity-5 border-b-2 ${
6+
class={`relative inline-flex text-sm font-sans leading-snug items-center bg-blueGray-500 bg-opacity-0 hover:bg-opacity-5 overflow-hidden space-x-2 border-solid border-brand-default dark:border-gray-200 border-opacity-5 dark:border-opacity-5 border-b-2 ${
77
props.class || ''
88
}`}
99
classList={{

0 commit comments

Comments
 (0)