Skip to content

feat: rewrite shadow root css - #5809

Merged
guanbinrui merged 21 commits into
developfrom
shadow-css-revisit
Mar 8, 2022
Merged

feat: rewrite shadow root css#5809
guanbinrui merged 21 commits into
developfrom
shadow-css-revisit

Conversation

@Jack-Works

Copy link
Copy Markdown
Member

close MF-97

@github-actions

github-actions Bot commented Mar 7, 2022

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request March 7, 2022 08:42 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request March 7, 2022 09:15 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request March 7, 2022 09:51 Inactive
@github-actions
github-actions Bot temporarily deployed to pull request March 7, 2022 11:28 Inactive
Comment thread packages/theme/src/ShadowRoot/Portal.tsx
<ErrorBoundary>
<PluginsInjectionHookRender {...props} />
</ErrorBoundary>
<span data-plugin-render="">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this <span/> necessary?

Don't see any css selector match [data-plugin-render] or some other usage

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not necessary. This span is used to wrap all plugins because there're many plugins and it's a noise. With this span, we can fold all plugins at once.

This data-plugin-render is not used anywhere. It's for a better view in the F12 DOM view.

Comment thread packages/plugin-infra/src/utils/createInjectHooksRenderer.tsx Outdated
guanbinrui
guanbinrui previously approved these changes Mar 7, 2022
Co-authored-by: UncleBill <billbill290@gmail.com>
@github-actions
github-actions Bot temporarily deployed to pull request March 7, 2022 13:34 Inactive
@guanbinrui
guanbinrui merged commit 4d7fbd4 into develop Mar 8, 2022
@guanbinrui
guanbinrui deleted the shadow-css-revisit branch March 8, 2022 04:29
guanbinrui added a commit that referenced this pull request Mar 10, 2022
Jack-Works added a commit that referenced this pull request Mar 10, 2022
Jack-Works added a commit that referenced this pull request Mar 14, 2022
* Revert "Revert "feat: rewrite shadow root css (#5809)""

This reverts commit 8de5cdb.

* chore: add css vars back

* chore: upgrade emotion

* fix: lint error
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.

3 participants