can't insert styles from frame children components
See original GitHub issuewhen import(‘index.css’) in subcomponent then will insert styles to parent document <head>. is react-frame-component can insert children components inner import styles to iframe? the example code:
<Frame>
<Child />
</Frame>
child.js
import('index.css') // this will insert to parent not iframe
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Create and insert component instances - Figma Help Center
Guide to style and component libraries → ... Insert instances of components from your keyboard using quick insert. Quick insert opens the Resources...
Read more >Override body style for content in an iframe - Stack Overflow
UPDATE - I've tried @mikeq's solution of adding a style to the class that is the body's class. This doesn't work when added...
Read more >Best practices for React iframes - LogRocket Blog
Explore two use cases for React iframes, embedding external content in a web application and isolating certain parts of an app.
Read more >tkinter.ttk — Tk themed widgets — Python 3.11.1 documentation
Ttk Styling¶ · ttk is assigned a style, which specifies the set of elements making up the widget and how they are arranged,...
Read more >Figma Tutorial: Components - The Basics - YouTube
Figma is free to use. Sign up here: http://bit.ly/2K5jJ0pIn this video we'll cover the basics of Components and how they can be a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is there a working demo of the solution by any chance? Is it possible to just inject the styles directly into the iframe header?
I know this is an old issue but another solution is to use file-loader plugin in Webpack to get the stylesheet path and add it to initialContent with a link tag.
You may need to choose a specific file name for your stylesheet and add a new rule to your Webpack configuration that matches the file name: