From 9326fa356f2cd74795ed1316436ce044e4e5806f Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Mon, 11 Nov 2024 11:58:47 -0300 Subject: [PATCH] initialize BauCss with a specific style element --- bau-ui/context.js | 2 +- bau-ui/examples/bau-ui-template-js/index.html | 1 + bau-ui/examples/bau-ui-template-ts/index.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bau-ui/context.js b/bau-ui/context.js index 5acaee12..b0680ce6 100644 --- a/bau-ui/context.js +++ b/bau-ui/context.js @@ -5,7 +5,7 @@ import globalStyle from "./globalStyle"; export function createContext(extra) { const bau = Bau(); - const bauCss = BauCss(); + const bauCss = BauCss({ target: window.document.getElementById("bau-css") }); globalStyle(bauCss); return { bau, diff --git a/bau-ui/examples/bau-ui-template-js/index.html b/bau-ui/examples/bau-ui-template-js/index.html index f4df4a7e..28eb3d6e 100644 --- a/bau-ui/examples/bau-ui-template-js/index.html +++ b/bau-ui/examples/bau-ui-template-js/index.html @@ -5,6 +5,7 @@ Bau App +
diff --git a/bau-ui/examples/bau-ui-template-ts/index.html b/bau-ui/examples/bau-ui-template-ts/index.html index 1b33aabe..2a801435 100644 --- a/bau-ui/examples/bau-ui-template-ts/index.html +++ b/bau-ui/examples/bau-ui-template-ts/index.html @@ -5,6 +5,7 @@ BauUI + TS +