Skip to content

Fixes #39367 - prevent global override of CSS#11765

Open
MariaAga wants to merge 1 commit into
Katello:masterfrom
MariaAga:no-css-override
Open

Fixes #39367 - prevent global override of CSS#11765
MariaAga wants to merge 1 commit into
Katello:masterfrom
MariaAga:no-css-override

Conversation

@MariaAga
Copy link
Copy Markdown
Contributor

@MariaAga MariaAga commented May 28, 2026

What are the changes introduced in this pull request?

I ran stylelint from theforeman/foreman#10968
And updated Katello to not override everyones UI.
Found this while looking at empty state for Hosts Index page, and saw that when Katello is not present it has margin-top:100px, but webpack/scenes/ContentViews/Details/Filters/MatchContentModal/matchContentModal.scss overrides it.

Considerations taken when implementing this change?

The css extra classes were AI added. The spaces were added with --fix arg when running stylelint.

What are the testing steps for this pull request?

Please take a look at the effected pages to make sure the styles still apply.

Summary by CodeRabbit

  • Style
    • Improved visual consistency across UI components including tables, modals, and tabs
    • Modernized CSS styling with updated property standards
    • Refined spacing and layout adjustments for various interface elements
    • Enhanced component styling scoping for better visual isolation

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

Warning

Review limit reached

@MariaAga, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 17 minutes and 58 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ccc8ed7d-d0e4-4806-96a0-8208a67d8d3c

📥 Commits

Reviewing files that changed from the base of the PR and between 60a38c8 and 2cda411.

📒 Files selected for processing (25)
  • webpack/ForemanColumnExtensions/index.scss
  • webpack/components/Bookmark/Bookmark.scss
  • webpack/components/OptionTooltip/OptionTooltip.scss
  • webpack/components/RoutedTabs/RoutedTabs.scss
  • webpack/components/Table/MainTable.scss
  • webpack/components/TooltipButton/TooltipButton.scss
  • webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.scss
  • webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/_shared-assignment-styles.scss
  • webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss
  • webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.scss
  • webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss
  • webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.scss
  • webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss
  • webpack/containers/Application/overrides.scss
  • webpack/scenes/ContainerImages/Synced/SyncedContainerImagesPage.scss
  • webpack/scenes/ContentViews/Details/Filters/MatchContentModal/matchContentModal.scss
  • webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.scss
  • webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss
  • webpack/scenes/ContentViews/Publish/cvPublishForm.scss
  • webpack/scenes/ContentViews/components/EnvironmentPaths/EnvironmentPaths.scss
  • webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss
  • webpack/scenes/RedHatRepositories/index.scss
  • webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss
  • webpack/scenes/Subscriptions/SubscriptionsPage.scss
  • webpack/scenes/SyncStatus/SyncStatus.scss
📝 Walkthrough

Walkthrough

This PR updates SCSS stylesheets across 24 component and page-level files to apply OUIA component-id attribute selectors for scoping, modernize CSS property syntax (overflow-wrap, gap, ::after), refine selector specificity through nesting, and clean up whitespace formatting.

Changes

SCSS Component Scoping and Modernization

Layer / File(s) Summary
OUIA Component Scoping Pattern
webpack/components/Bookmark/Bookmark.scss, webpack/components/RoutedTabs/RoutedTabs.scss, webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.scss, webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss, webpack/scenes/ContainerImages/Synced/SyncedContainerImagesPage.scss, webpack/scenes/ContentViews/Details/Filters/MatchContentModal/matchContentModal.scss, webpack/scenes/SyncStatus/SyncStatus.scss
Dropdown, modal, card, and table styles are now scoped under explicit OUIA data-ouia-component-id attribute selectors (bookmark-dropdown, add-bookmark-modal, content-view-details-card, enable-tracer-modal, synced-container-images-table, rpm-matching-content, sync-status-toolbar, sync-status-table, routed-tabs) to isolate component styling.
CSS Property and Syntax Modernization
webpack/containers/Application/overrides.scss, webpack/scenes/ContentViews/Publish/cvPublishForm.scss, webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss, webpack/scenes/ContentViews/components/EnvironmentPaths/EnvironmentPaths.scss, webpack/scenes/RedHatRepositories/index.scss
CSS syntax updated: word-wrap: break-word replaced with overflow-wrap: break-word in table cells, deprecated grid-gap changed to gap in layout utilities and wizard components, vendor-prefixed flexbox declarations simplified to display: flex, and pseudo-element selectors changed from :after to ::after.
Selector Scope and Specificity Refinement
webpack/ForemanColumnExtensions/index.scss, webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/_shared-assignment-styles.scss, webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.scss, webpack/containers/Application/overrides.scss, webpack/scenes/ContentViews/components/EnvironmentPaths/EnvironmentPaths.scss, webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss
Global style rules nested into component contexts (toggle-group text color under errata-tab, hr border rules under expandable-section), label margin rules repositioned, toolbar form-group selector specificity adjusted with adjacent-sibling combinators, star icon color and spacing rules added, and column icon padding selectors updated.
Whitespace and Formatting Cleanup
webpack/components/OptionTooltip/OptionTooltip.scss, webpack/components/Table/MainTable.scss, webpack/components/TooltipButton/TooltipButton.scss, webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss, webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.scss, webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss, webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.scss, webpack/scenes/RedHatRepositories/index.scss, webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss, webpack/scenes/Subscriptions/SubscriptionsPage.scss, webpack/containers/Application/overrides.scss
Non-functional formatting adjustments including blank line additions within component blocks, selector list line-breaking, indentation normalization, and whitespace consolidation around SCSS blocks and rules without changing style declarations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Katello/katello#11693: Both PRs touch webpack/components/RoutedTabs/RoutedTabs.scss to adjust PatternFly v5 routed-tabs styling and selector targeting for the RoutedTabs component.

Suggested reviewers

  • vsedmik
  • jnagare-redhat
  • lfu
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fixes #39367 - prevent global override of CSS' directly and clearly describes the main objective of the pull request, which is to prevent global CSS overrides as indicated in the PR description.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MariaAga MariaAga changed the title Fixed #39367 - prevent global override of CSS Fixes #39367 - prevent global override of CSS May 28, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@webpack/scenes/RedHatRepositories/index.scss`:
- Around line 5-7: The .row-eq-height rule contains an invalid display value and
a duplicate; remove the line with "display: flexbox" (invalid) and keep only a
single "display: flex" declaration in the .row-eq-height selector so the rule
has one valid display property; update the SCSS where the .row-eq-height block
is defined (look for the .row-eq-height selector) to remove the extra/invalid
lines.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b7a53d8c-e9e1-4706-a0b3-cf525b5c3bbc

📥 Commits

Reviewing files that changed from the base of the PR and between 6027570 and 60a38c8.

📒 Files selected for processing (25)
  • webpack/ForemanColumnExtensions/index.scss
  • webpack/components/Bookmark/Bookmark.scss
  • webpack/components/OptionTooltip/OptionTooltip.scss
  • webpack/components/RoutedTabs/RoutedTabs.scss
  • webpack/components/Table/MainTable.scss
  • webpack/components/TooltipButton/TooltipButton.scss
  • webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/ContentViewDetailsCard.scss
  • webpack/components/extensions/HostDetails/Cards/ContentViewDetailsCard/_shared-assignment-styles.scss
  • webpack/components/extensions/HostDetails/Cards/ErrataOverviewCard.scss
  • webpack/components/extensions/HostDetails/Cards/HostCollectionsCard/HostCollectionsCard.scss
  • webpack/components/extensions/HostDetails/Cards/SystemPurposeCard/SystemPurposeCard.scss
  • webpack/components/extensions/HostDetails/Tabs/ErrataTab/ErrataTab.scss
  • webpack/components/extensions/HostDetails/Tabs/TracesTab/EnableTracerModal.scss
  • webpack/containers/Application/overrides.scss
  • webpack/scenes/ContainerImages/Synced/SyncedContainerImagesPage.scss
  • webpack/scenes/ContentViews/Details/Filters/MatchContentModal/matchContentModal.scss
  • webpack/scenes/ContentViews/Details/Versions/Compare/CVVersionCompare.scss
  • webpack/scenes/ContentViews/Details/Versions/ContentViewVersionErrata.scss
  • webpack/scenes/ContentViews/Publish/cvPublishForm.scss
  • webpack/scenes/ContentViews/components/EnvironmentPaths/EnvironmentPaths.scss
  • webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss
  • webpack/scenes/RedHatRepositories/index.scss
  • webpack/scenes/Subscriptions/Manifest/ManageManifestModal.scss
  • webpack/scenes/Subscriptions/SubscriptionsPage.scss
  • webpack/scenes/SyncStatus/SyncStatus.scss
💤 Files with no reviewable changes (1)
  • webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.scss

Comment thread webpack/scenes/RedHatRepositories/index.scss Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant