Skip to content

Commit

Permalink
fix: bootstrap styles are not available in BOS components
Browse files Browse the repository at this point in the history
  • Loading branch information
alsakhaev committed Jul 17, 2024
1 parent ec65b15 commit c304ab8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/engine/src/app/components/context-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ const InsPointHandler: FC<{
config.layoutManagers.ear === layoutManagerId ? { position: 'relative' } : undefined

return (
<ShadowDomWrapper className="mweb-layout-manager" style={shadowDomHostStyles}>
<ShadowDomWrapper
className="mweb-layout-manager"
style={shadowDomHostStyles}
stylesheetSrc={engine.config.bosElementStyleSrc}
>
<Widget
src={layoutManagerId ?? config.layoutManagers.horizontal}
props={props}
Expand Down
5 changes: 5 additions & 0 deletions libs/engine/src/app/components/shadow-dom-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const ShadowDomWrapper = React.forwardRef<HTMLDivElement, ShadowDomWrappe
justify-content: center;
/* position: relative; */
visibility: visible !important;
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
}
`
const disableCssInheritanceStyle = document.createElement('style')
Expand Down

0 comments on commit c304ab8

Please sign in to comment.