Skip to content

Fix default layer host#1950

Merged
PorterNan merged 12 commits intomainfrom
jinan/fix-default-layer-host
Jun 8, 2022
Merged

Fix default layer host#1950
PorterNan merged 12 commits intomainfrom
jinan/fix-default-layer-host

Conversation

@PorterNan
Copy link
Copy Markdown
Contributor

What

Related to issue: #775

Add a default host layer in base provider

  1. make our lib compatible with react-full-screen
  2. avoid polluting global dom tree

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

1. make our lib compatible with react-full-screen
2. avoid polluting global dom tree
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

Calling bundle size is increased❗.

  • Current size: 4700281
  • Base size: 4700085
  • Diff size: 196

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

Chat bundle size is increased❗.

  • Current size: 4881232
  • Base size: 4880662
  • Diff size: 570

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

CallWithChat bundle size is increased❗.

  • Current size: 5090587
  • Base size: 5090389
  • Diff size: 198

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
{props.children}
<Customizer scopedSettings={{ Layer: { hostId: globalLayerHostId } }}>{props.children}</Customizer>
<LayerHost id={globalLayerHostId} className={mergeStyles(globalLayerHostStyle)} />
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I seeing this correct - We can just specificy a new global layer in the customizer and everything automatically childs to that instead of body??

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing if so 😍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume when we assign layerHosts manually (such as for modals) that need to be in a specific layer they are unnaffected and not overriden by this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume when we assign layerHosts manually (such as for modals) that need to be in a specific layer they are unnaffected and not overriden by this?

Yes, according to my tests, it behaves just like in tag, except we moving it into another div element, and all override is still working pretty well

Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️❤️❤️

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

3 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 6, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2022

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2022

@PorterNan PorterNan enabled auto-merge (squash) June 8, 2022 00:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2022

@PorterNan PorterNan merged commit 8f250b1 into main Jun 8, 2022
@PorterNan PorterNan deleted the jinan/fix-default-layer-host branch June 8, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants