docs(ui): dark mode fixes (#5204)

* docs(ui): dark mode fixes

* apply color on the body

* remove z-index
This commit is contained in:
Shahed Nasser
2023-09-25 18:36:42 +03:00
committed by GitHub
parent f285a67123
commit 797cd48bd3
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const Navbar = () => {
setMobileSidebarOpen, setMobileSidebarOpen,
mobileSidebarOpen, mobileSidebarOpen,
}} }}
className="!z-[99]" className="!z-[49]"
/> />
) )
} }
+4 -2
View File
@@ -1,4 +1,4 @@
import { Button, Drawer } from "@medusajs/ui" import { Button, Drawer, Text } from "@medusajs/ui"
export default function DrawerDemo() { export default function DrawerDemo() {
return ( return (
@@ -10,7 +10,9 @@ export default function DrawerDemo() {
<Drawer.Header> <Drawer.Header>
<Drawer.Title>Edit Variant</Drawer.Title> <Drawer.Title>Edit Variant</Drawer.Title>
</Drawer.Header> </Drawer.Header>
<Drawer.Body></Drawer.Body> <Drawer.Body className="p-4">
<Text>This is where you edit the variant&apos;s details</Text>
</Drawer.Body>
<Drawer.Footer> <Drawer.Footer>
<Drawer.Close asChild> <Drawer.Close asChild>
<Button variant="secondary">Cancel</Button> <Button variant="secondary">Cancel</Button>
+5 -1
View File
@@ -18,7 +18,11 @@
@apply !bg-medusa-code-text-highlight; @apply !bg-medusa-code-text-highlight;
} }
body {
@apply text-ui-fg-subtle;
}
body[data-modal="opened"] { body[data-modal="opened"] {
@apply !overflow-hidden; @apply !overflow-hidden text-ui-fg-base;
} }
} }