Skip to content

Commit

Permalink
chore(dynamic-component): add dark mode bg
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Sep 1, 2023
1 parent 87a315b commit d2b69f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/docs/dynamic-component-display.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div :id="id"
class="component-preview bg-stone-300 shadow-inner rounded-lg my-4 py-4 flex flex-col justify-center items-center w-full">
class="component-preview bg-stone-300 dark:bg-gray-800 shadow-inner rounded-lg my-4 py-4 flex flex-col justify-center items-center w-full">
<Component :is="type" v-bind="componentProps" v-model="modelValue">
<template v-for="(index, name) in $slots" v-slot:[name]>
<slot :name="name" />
Expand Down
5 changes: 0 additions & 5 deletions styles/preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
.dsq-form-element-container-with-label {
div {

label,
select {
@apply bg-stone-300;
}

input {
margin-top: 0;
}
Expand Down

0 comments on commit d2b69f2

Please sign in to comment.