Skip to content

Commit

Permalink
fix(VBottomSheet): import dependency styles (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano authored Mar 16, 2023
1 parent b24c6e0 commit 649f4a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/bottom-sheets/src/BottomSheet.dark.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '@morpheme/list/src/List.dark.scss';

.dark {
.v-bottom-sheet {
--v-bottom-sheet-bg-color: theme('colors.neutral.900');
Expand Down
8 changes: 5 additions & 3 deletions packages/bottom-sheets/src/BottomSheet.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:root {
@import '@morpheme/list/src/List.scss';

:root {
--v-bottom-sheet-bg-color: #fff;
--v-bottom-sheet-body-color: theme('colors.gray.800');

Expand Down Expand Up @@ -37,8 +39,8 @@
background-color: var(--v-bottom-sheet-bg-color, #fff);
color: var(--v-bottom-sheet-body-color);
overflow: hidden;
border-top-right-radius: 0.75rem/* 12px */;
border-top-left-radius: 0.75rem/* 12px */;
border-top-right-radius: 0.75rem /* 12px */;
border-top-left-radius: 0.75rem /* 12px */;
width: 100%;
box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.05);
}
Expand Down
10 changes: 9 additions & 1 deletion packages/bottom-sheets/src/BottomSheet.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,15 @@ export const DarkMode: Story = (args, {argTypes}) => ({
BottomSheetBody,
BottomSheetHeader,
Button,
BottomSheetMenus,
},
setup() {
const isOpen = ref(false);
onMounted(() => {
document.documentElement.classList.add('dark');
});
return {args, argTypes, isOpen};
const selected = ref();
return {args, argTypes, isOpen, menus, selected};
},
template: `
<div class="dark:bg-neutral-900 dark:text-neutral-200 p-6">
Expand All @@ -314,6 +316,12 @@ export const DarkMode: Story = (args, {argTypes}) => ({
<BottomSheetBody>
A quick brown fox leaps over the lazy dog.
</BottomSheetBody>
<BottomSheetMenus
v-model="selected"
:items="menus"
selectable
hover
/>
</BottomSheet>
</div>
`,
Expand Down

0 comments on commit 649f4a3

Please sign in to comment.