-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out ergonomics of CSS modules in ShadowDOM components #7670
Comments
Reminder to consider with this issue and approach:
|
I pushed a PR to fix that so we don't have to consider it anymore. As for the solution to this general issue:
Once this is done, components will be safely reusable anywhere, whether inline (e.g. in Storybook), in modals or in iframes (via wrapper file that calls Iframes may or may not be removed at that point, but we wouldn't need to worry about that. |
Related improvements:
|
--------- Co-authored-by: Todd Schiller <todd.schiller@gmail.com> Co-authored-by: Graham Langford <30706330+grahamlangford@users.noreply.github.com>
…ntent`, `CustomFormComponent` (#8200) * POC: Isolated components * Wrap `SelectionMenu` * Extract CSS, use regular element for now * Wrap `PropertyTree` * Wrap `SelectionToolPopover` * Fix tests * Fix unrelated mutation https://togithub.com/sindresorhus/eslint-plugin-unicorn/issues/1514 https://togithub.com/pixiebrix/pixiebrix-extension/pull/4486 * Update docs * Cleanup * Some components need no style; test Stylesheets component * Ok but no fonts? * Ok with fonts * Import issues * Lint * Move init to <IsolatedComponent> * Fix most issues * Extract/cleanup * /2 * Move DiscardFilePlugin config out * Update documentation * CustomFormComponent * EphemeralFormContent * DocumentView * Bad merge * Lint * Lint * Sort jest config * Ensure stylesheets are removed in IsolatedComponent * Comments * Open Shadow DOM To avoid this regression: #8211 * Test shadow DOM * Fill the frame (h-100) * fixes failing tests --------- Co-authored-by: Graham Langford <grahamlangford87@gmail.com>
This issue will be closed in 7 days unless the stale label is removed, or a comment is added to the issue. |
This issue was closed because it has been stale for 7 days with no activity. |
From #7666 (comment) by @twschiller
I think we need to start considering components in shadow DOM as standalone:
isolatedWidgets
directoryIf I'm not mistaken, webpack can actually natively handle CSS injection in this case, but we'd have to give up mini-css-extract-plugin.
The text was updated successfully, but these errors were encountered: