-
Task
-
Resolution: Done
-
Critical
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
-
-
OCMUI Center Team Sprint 277
Problem:
When compiling the UHC Portal with FEC, custom CSS styles are not being applied to PatternFly components that render outside the module's root element (e.g., modals, dropdowns, popovers). This occurs because FEC prefixes CSS selectors with a unique scoping class, but components rendered to document.body fall outside this scoped container.
Root Cause:
- FEC compilation prefixes CSS selectors with scoping classes
- PatternFly components like Modal, Select, Dropdown, and Popover render to document.body by default
- These body-rendered components are outside the FEC-scoped container, causing custom styles to not apply
Solution:
Added className="openshift" to components that:
- Render outside the FEC-scoped container
- Have custom SCSS styling or contain child components with custom styling
- Show visible styling issues when rendered outside the scoped container
- relates to
-
OCMUI-3818 Improper placement of widget layouts across multiple modals such as Update cluster, Add/Edit machine pools etc
-
- Closed
-
- links to