Skip to content

Commit 09b65d0

Browse files
committed
Import scoped CSS
1 parent 943ee9f commit 09b65d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Alert.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import { assert } from "tsafe/assert";
88
import type { Equals } from "tsafe";
99
import { useConstCallback } from "./lib/tools/powerhooks/useConstCallback";
1010
import { createComponentI18nApi } from "./lib/i18n";
11+
// We make users import dsfr.css so we don't need to import the scoped CSS
12+
// but in the future if we have a complete component coverage it
13+
// we could stop requiring users to import the hole CSS and only import on a
14+
// per component basis.
15+
import "./dsfr/component/alert/alert.css";
1116

1217
export type AlertProps = {
1318
className?: string;

0 commit comments

Comments
 (0)