Skip to content

Commit

Permalink
fix(Drawer/Modal/Slideover): no need for z-index since its isolated
Browse files Browse the repository at this point in the history
Resolves #2347
  • Loading branch information
benjamincanac committed Oct 10, 2024
1 parent 1a7af6d commit bcfa4b7
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions src/theme/drawer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
slots: {
overlay: 'fixed inset-0 z-50 bg-[--ui-bg-elevated]/75',
content: 'fixed z-50 bg-[--ui-bg] ring ring-[--ui-border] flex focus:outline-none',
overlay: 'fixed inset-0 bg-[--ui-bg-elevated]/75',
content: 'fixed bg-[--ui-bg] ring ring-[--ui-border] flex focus:outline-none',
handle: 'shrink-0 rounded-full bg-[--ui-bg-accented]',
container: 'w-full flex flex-col gap-4 p-4 overflow-y-auto',
header: '',
Expand Down
4 changes: 2 additions & 2 deletions src/theme/modal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
slots: {
overlay: 'fixed inset-0 z-50 bg-[--ui-bg-elevated]/75',
content: 'fixed z-50 w-full h-dvh bg-[--ui-bg] divide-y divide-[--ui-border] flex flex-col focus:outline-none',
overlay: 'fixed inset-0 bg-[--ui-bg-elevated]/75',
content: 'fixed w-full h-dvh bg-[--ui-bg] divide-y divide-[--ui-border] flex flex-col focus:outline-none',
header: 'px-4 py-5 sm:px-6',
body: 'flex-1 p-4 sm:p-6',
footer: 'flex items-center gap-1.5 p-4 sm:px-6',
Expand Down
4 changes: 2 additions & 2 deletions src/theme/slideover.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
slots: {
overlay: 'fixed inset-0 z-50 bg-[--ui-bg-elevated]/75',
content: 'fixed z-50 bg-[--ui-bg] divide-y divide-[--ui-border] sm:ring ring-[--ui-border] sm:shadow-lg flex flex-col focus:outline-none',
overlay: 'fixed inset-0 bg-[--ui-bg-elevated]/75',
content: 'fixed bg-[--ui-bg] divide-y divide-[--ui-border] sm:ring ring-[--ui-border] sm:shadow-lg flex flex-col focus:outline-none',
header: 'px-4 py-5 sm:px-6',
body: 'flex-1 overflow-y-auto p-4 sm:p-6',
footer: 'flex items-center gap-1.5 p-4 sm:px-6',
Expand Down
Loading

0 comments on commit bcfa4b7

Please sign in to comment.