-
Notifications
You must be signed in to change notification settings - Fork 0
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
overlay-layout.scss
affecting global styles
#12
Comments
Hi @nolazheng, thank you for bringing up this issue. The fix has been released in v1.2.2. If you encounter any further issues or have any questions, feel free to reach out. Thanks again! |
Hi @motea927, thank you for fixing the issue! I tested the new version and found that css is all fine now. I also found that adding an additional zIndex in layoutPreview is required for new version to work properly. OverlayLayout({
/* options */
layoutPreview: {
style: {
position: 'absolute',
margin: 'auto',
inset: '0',
width: '16.2rem',
height: '6.6rem',
zIndex: 999, // <--- this
},
},
}), Perhaps it would be worth considering an update to the documentation or include the CSS separately. Thanks again! |
Hi @nolazheng, After merging PR #13, the layout preview lost its default styles. This issue has been addressed in PR #16 and is included in the latest release: v1.2.3. Thanks for your feedback! |
What is actually happening?
The
overlay-layout.scss
file is being applied globally throughout the project during development. If not disabled or managed properly during development, it causes unwanted global styles to be included in the final build, leading to potential style conflicts and layout issues across different components.What is expected?
The
overlay-layout.scss
file should be scoped or conditionally included, so it doesn't affect the entire project globally, especially in the final production build. It should only be applied when necessary and not interfere with the styles of other components.Reproduction steps:
overlay-layout.scss
in the project globally.overlay-layout.scss
are still included, affecting the entire application.The text was updated successfully, but these errors were encountered: