Skip to content

fix(sidebar): remove background in glass#8446

Merged
mcoker merged 2 commits into
patternfly:mainfrom
mcoker:issue-8380
Jun 9, 2026
Merged

fix(sidebar): remove background in glass#8446
mcoker merged 2 commits into
patternfly:mainfrom
mcoker:issue-8380

Conversation

@mcoker

@mcoker mcoker commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

fixes #8380

Summary by CodeRabbit

  • Documentation
    • Added .pf-m-no-plain-on-glass docs for Sidebar panel/content and updated .pf-m-no-background usage to note deprecation and scope; updated .pf-m-secondary usage details; also added deprecation note for Drawer .pf-m-no-background.
  • Bug Fixes
    • Improved Sidebar background handling across themes so panel/content backgrounds render correctly and avoid unintended "plain" styling under glass themes.

@mcoker mcoker requested review from andrew-ronaldson and jcmill June 9, 2026 03:42
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: a4fd77ba-25ee-447a-ab13-04658c4a458c

📥 Commits

Reviewing files that changed from the base of the PR and between a9ad82a and c98c6e0.

📒 Files selected for processing (3)
  • src/patternfly/components/Drawer/examples/Drawer.md
  • src/patternfly/components/Sidebar/examples/Sidebar.md
  • src/patternfly/components/Sidebar/sidebar.scss
✅ Files skipped from review due to trivial changes (1)
  • src/patternfly/components/Drawer/examples/Drawer.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/patternfly/components/Sidebar/examples/Sidebar.md

Walkthrough

Refactors Sidebar SCSS so panel/content use transparent background CSS variables under glass/non-glass roots with plain/no-plain-on-glass precedence; removes the old direct background rule. Updates Sidebar and Drawer usage docs: adds .pf-m-no-plain-on-glass docs and deprecates .pf-m-no-background in favor of .pf-m-plain.

Changes

Glass-theme background fix and docs

Layer / File(s) Summary
Sidebar panel background variable
src/patternfly/components/Sidebar/sidebar.scss
Sets --pf-c-sidebar__panel--BackgroundColor to transparent via selectors that account for :root.pf-v6-theme-glass (excluding .pf-m-no-plain-on-glass) and pf-m-plain on non-glass roots.
Sidebar content background variable
src/patternfly/components/Sidebar/sidebar.scss
Sets --pf-c-sidebar__content--BackgroundColor to transparent using combined selectors that replace the previous direct .pf-m-no-background block and account for .pf-m-no-plain-on-glass.
Remove legacy direct background rule
src/patternfly/components/Sidebar/sidebar.scss
Deletes the older generic .pf-m-no-background rule that directly set background-color: transparent on the sidebar root/panel/content.
Sidebar docs: usage and new modifier
src/patternfly/components/Sidebar/examples/Sidebar.md
Updates .pf-m-no-background usage to apply only to panel/content with a deprecation note to use .pf-m-plain, adjusts .pf-m-secondary entry formatting, and adds .pf-m-no-plain-on-glass usage row describing its effect on panel/content.
Drawer docs: deprecate .pf-m-no-background
src/patternfly/components/Drawer/examples/Drawer.md
Adds a deprecation note in the Drawer usage table indicating .pf-m-no-background is deprecated and recommending .pf-m-plain.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

released on @prerelease``

Suggested reviewers

  • jcmill
  • andrew-ronaldson
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title follows conventional commit format with type(scope): description, accurately summarizing the main fix for sidebar background in glass theme.
Linked Issues check ✅ Passed The PR successfully addresses issue #8380 by refactoring pf-m-no-background behavior and introducing pf-m-no-plain-on-glass modifier to properly handle sidebar panel/content background in glass theme.
Out of Scope Changes check ✅ Passed All changes are in-scope: sidebar SCSS refactoring, sidebar documentation updates, and drawer documentation deprecation note are all directly related to fixing the sidebar background issue.

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

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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.

@patternfly-build

patternfly-build commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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 `@src/patternfly/components/Sidebar/examples/Sidebar.md`:
- Line 237: Update the Sidebar documentation row for the `.pf-m-no-background`
modifier to match the SCSS: remove `.pf-v6-c-sidebar` and list only
`.pf-v6-c-sidebar__panel, .pf-v6-c-sidebar__content` as the affected elements;
ensure the table cell text now reads exactly that selector list and keeps the
existing description "Modifies the element to have a transparent background." to
reflect the actual implementation in `sidebar.scss` where `.pf-m-no-background`
is applied to `.pf-v6-c-sidebar__panel` and `.pf-v6-c-sidebar__content`.
🪄 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: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: f7a3d397-decc-4cef-91d4-4c87f625464f

📥 Commits

Reviewing files that changed from the base of the PR and between 29ff711 and a9ad82a.

📒 Files selected for processing (2)
  • src/patternfly/components/Sidebar/examples/Sidebar.md
  • src/patternfly/components/Sidebar/sidebar.scss

Comment thread src/patternfly/components/Sidebar/examples/Sidebar.md Outdated

@jcmill jcmill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤘

@mcoker mcoker merged commit 89a8dc6 into patternfly:main Jun 9, 2026
6 checks passed
@mcoker mcoker deleted the issue-8380 branch June 9, 2026 15:56
@patternfly-build

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 6.6.0-prerelease.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Sidebar - Panels have background color

3 participants