Skip to content

Fixes #39593 - Restore background color for Rails-rendered pages - #11134

Open
sjha4 wants to merge 1 commit into
theforeman:developfrom
sjha4:background-color
Open

Fixes #39593 - Restore background color for Rails-rendered pages#11134
sjha4 wants to merge 1 commit into
theforeman:developfrom
sjha4:background-color

Conversation

@sjha4

@sjha4 sjha4 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Commit fb3d37d ("Fixes #39276 - Add Stylelint rule to block global css overrides") changed the selector in layout.scss from .pf-v5-c-page to #foreman-page to comply with the new foreman/no-root-pf-overrides stylelint rule. This inadvertently dropped the --pf-v5-c-page--BackgroundColor override for #rails-app-content, which is the wrapper for Rails-rendered pages in base.html.erb and uses class="pf-v5-c-page" instead of id="foreman-page".

As a result, Rails-rendered pages (used by Foreman and plugins like Katello) no longer inherit the intended background color (--pf-v5-global--BackgroundColor--100).

Example:
Go to menu -> facts
See the background color difference in empty section.
Screenshot from 2026-08-05 14-41-20

Go to menu > Lifecycle > Content Views
Page renders with this background color:
Screenshot from 2026-08-05 14-45-10

@MariaAga

MariaAga commented Aug 6, 2026

Copy link
Copy Markdown
Member

should the other --pf-v5-c-page--BackgroundColor var be moved/removed?

@Lukshio

Lukshio commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

--pf-v5-c-page--BackgroundColor

@MariaAga It is still needed for pages like All Hosts

Lukshio
Lukshio previously approved these changes Aug 6, 2026
@MariaAga

MariaAga commented Aug 6, 2026

Copy link
Copy Markdown
Member

So can it be moved up to the body? like in app/assets/stylesheets/base-pf4.scss

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sjha4

sjha4 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@MariaAga Ya..It can be moved up to body..Updated..

@sjha4

sjha4 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Katello ruby test failure is an unrelated flakiness issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants