Skip to content

Commit 0735a8f

Browse files
cristineculamegheaiulian
authored andcommitted
Make context providers transparent to the layout
Context provider elements have `display: block` by default, which can cause trouble with the layout when wrapping existing code in a provider. This change makes it so that provider elements are irrelevant to the layout, as they should be.
1 parent a4318f9 commit 0735a8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/create-context.ts

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ function makeContext(component: ComponentCreator): Creator {
3434

3535
constructor() {
3636
super();
37+
38+
this.style.display = "contents";
39+
3740
this.listeners = new Set();
3841

3942
this.addEventListener(contextEvent, this);

0 commit comments

Comments
 (0)