Skip to content

Commit

Permalink
feat(create-context): don't use Shadow Root.
Browse files Browse the repository at this point in the history
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 matthewp#384
  • Loading branch information
megheaiulian authored and cristinecula committed May 15, 2023
1 parent af1790d commit 601d52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function makeContext(component: ComponentCreator): Creator {
const context = useContext(Context);

return render(context);
}),
}, { useShadowDOM: false }),

defaultValue,
};
Expand Down

0 comments on commit 601d52c

Please sign in to comment.