Skip to content

Commit da31fee

Browse files
committed
fix: modal backdrop
1 parent b859535 commit da31fee

File tree

12 files changed

+12
-15
lines changed

12 files changed

+12
-15
lines changed

src/lib/bottom-navigation/BottomNavItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
});
6969
7070
$effect(() => {
71-
console.log('commonProps: ', commonProps);
71+
// console.log('commonProps: ', commonProps);
7272
});
7373
</script>
7474

src/lib/mega-menu/MegaMenu.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}: Props = $props();
1313
1414
const { base, div, ul, footerDiv } = $derived(megamenu());
15-
$inspect('dropdownStatus', dropdownStatus);
15+
// $inspect('dropdownStatus', dropdownStatus);
1616
</script>
1717

1818
<!-- Dropdown menu -->

src/lib/modal/Modal.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
modal({
4747
position,
4848
size,
49-
backdrop,
49+
// backdrop,
5050
rounded
5151
})
5252
);

src/lib/modal/theme.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const modal = tv({
66
div: 'flex relative w-full max-h-full',
77
content:
88
'w-full divide-y text-gray-800 dark:text-gray-300 border-gray-300 dark:border-gray-800 divide-gray-300 dark:divide-gray-800 bg-white dark:bg-gray-800 pointer-events-auto',
9-
backdrop: 'fixed inset-0 z-50 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 pointer-events-auto',
9+
backdrop: 'fixed inset-0 z-50 bg-gray-900/50 dark:bg-gray-900/80 pointer-events-auto',
1010
header: 'flex justify-between items-center p-4 md:p-5 rounded-t-lg',
1111
footer: 'flex items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b-lg',
1212
body: 'p-4 md:p-5 space-y-4 flex-1 overflow-y-auto overscroll-contain',
@@ -37,9 +37,6 @@ export const modal = tv({
3737
lg: { div: 'max-w-4xl' },
3838
xl: { div: 'max-w-7xl' }
3939
},
40-
backdrop: {
41-
true: { backdrop: 'bg-gray-900 bg-opacity-75' }
42-
},
4340
rounded: {
4441
true: { content: 'rounded' }
4542
},

src/lib/nav/NavLi.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// let currentUrl = $state();
2323
let isActive = $derived(navUrl ? href === navUrl : false);
2424
$effect(() => {
25-
$inspect('navUrl: ', navUrl);
25+
// $inspect('navUrl: ', navUrl);
2626
});
2727
2828
const { base, link } = $derived(navLi({ active: isActive, breakPoint }));

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
? deepMerge(page.data.layoutMetaTags, page.data.pageMetaTags)
5757
: data.layoutMetaTags;
5858
activeUrl = page.url.pathname;
59-
$inspect('activeUrl in layout: ', activeUrl);
59+
// $inspect('activeUrl in layout: ', activeUrl);
6060
});
6161
</script>
6262

src/routes/components/alert/examples/Event.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Alert } from '$lib';
33
let alertEventStatus = $state(true);
44
function handleClose() {
5-
console.log('Alert dismissed');
5+
// console.log('Alert dismissed');
66
alert('Alert dismissed');
77
alertEventStatus = false;
88
}

src/routes/components/badge/examples/DismissingWithEvents.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Badge } from '$lib';
33
let eventStatus = $state(true);
44
function handleClose() {
5-
console.log('Badge dismissed');
5+
// console.log('Badge dismissed');
66
alert('Badge dismissed');
77
eventStatus = false;
88
}

src/routes/components/modal/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
const positions = Object.keys(modal.variants.position);
3131
let modalPosition: ModalProps['position'] = $state('default');
3232
const sizes = Object.keys(modal.variants.size);
33-
console.log('sizes', sizes);
33+
// console.log('sizes', sizes);
3434
let modalSize: ModalProps['size'] = $state('md');
3535
let backdrop = $state(true);
3636
const changeBackdrop = () => {

src/routes/components/progress/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
easing = undefined;
6565
}
6666
};
67-
$inspect('tweenDuration', tweenDuration, 'animation', animation);
67+
// $inspect('tweenDuration', tweenDuration, 'animation', animation);
6868
// const randomize = () => {
6969
// progress = `${Math.round(Math.random() * 100)}`
7070
// }

0 commit comments

Comments
 (0)