Skip to content

Commit

Permalink
fix: πŸ’„ add default css styles to toaster component QwikDev/qwik#948
Browse files Browse the repository at this point in the history
  • Loading branch information
diecodev committed Jan 13, 2024
1 parent 7209742 commit cb81a4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
useOnDocument,
useSignal,
useStore,
useStyles$,
useTask$,
useVisibleTask$,
} from "@builder.io/qwik";
Expand All @@ -22,7 +23,7 @@ import {
VIEWPORT_OFFSET,
VISIBLE_TOASTS_AMOUNT,
} from "../constants";
import "./styles.css";
import styles from "./styles.css?inline";
import { toastState } from "../utils/state";

function getDocumentDirection(): ToasterProps["dir"] {
Expand All @@ -40,6 +41,7 @@ function getDocumentDirection(): ToasterProps["dir"] {
}

export const Toaster = component$<ToasterProps>((props) => {
useStyles$(styles);
const {
position = "bottom-right",
hotkey = ["altKey", "KeyT"],
Expand Down

0 comments on commit cb81a4f

Please sign in to comment.