Skip to content

Commit

Permalink
chore: fix Web Component
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Aug 23, 2023
1 parent 99134ab commit 7a3d4a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function Widget(props: { theme?: string; widget: boolean }) {
return (
<div
data-theme={props.theme}
class="flex flex-col bg-base-300 px-4 py-8 rounded-xl shadow-2xl bati-widget"
class="flex flex-col bg-base-300 px-4 py-8 rounded-xl shadow-2xl font-sans bati-widget"
classList={{
"w-4/5": !props.widget,
}}
Expand Down
4 changes: 2 additions & 2 deletions layouts/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

/*https://github.com/saadeghi/daisyui/blob/master/src/components/styled/select.css*/
.listbox {
@apply border border-base-content border-opacity-0 bg-base-100 pr-10 font-semibold rounded-btn;
@apply border-solid border border-base-content border-opacity-0 bg-base-100 pr-10 font-semibold rounded-btn;
&-bordered {
@apply border-opacity-20;
}
Expand All @@ -79,7 +79,7 @@
@apply bg-base-100 drop-shadow-xl rounded-t-none rounded-b-lg;

& [role=option][aria-selected=true] {
@apply border-2 border-base-content/20;
@apply border-solid border-2 border-base-content/20;
}

& [role=option][aria-disabled=true] {
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { build, defineConfig, type Plugin } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
import autoprefixer from "autoprefixer";
import tailwindcss from "tailwindcss";
// @ts-ignore
import tailwindcssNesting from "tailwindcss/nesting";
import daisyui from "daisyui";
import solidPlugin from "vite-plugin-solid";

Expand Down Expand Up @@ -58,6 +60,7 @@ export default defineConfig(({ mode, command }) => {
inject: false,
plugins: [
autoprefixer(),
tailwindcssNesting(),
tailwindcss({
corePlugins: {
preflight: false,
Expand All @@ -78,7 +81,7 @@ export default defineConfig(({ mode, command }) => {
Rule(rule) {
rule.selector = rule.selector.replaceAll(
":root",
".bati-widget"
".bati-widget",
);
},
},
Expand Down

0 comments on commit 7a3d4a0

Please sign in to comment.