Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3819

Fix CSS scoping issues for components rendered outside uhc-portal's module container

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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:

      1. Render outside the FEC-scoped container
      1. Have custom SCSS styling or contain child components with custom styling
      1. Show visible styling issues when rendered outside the scoped container

              rh-ee-thendric Trevor Hendricks
              rh-ee-thendric Trevor Hendricks
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: