From 601d52c261163ff59469a7206972d37421c6552b Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Fri, 4 Nov 2022 11:09:52 +0200 Subject: [PATCH] feat(create-context): don't use Shadow Root. The Context's Consumer component does not need to have a ShadowRoot because it would be very hard to style elements inside it. (part) fixes #384 --- src/create-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/create-context.ts b/src/create-context.ts index 5a624a1..c9eecc8 100644 --- a/src/create-context.ts +++ b/src/create-context.ts @@ -76,7 +76,7 @@ function makeContext(component: ComponentCreator): Creator { const context = useContext(Context); return render(context); - }), + }, { useShadowDOM: false }), defaultValue, };