fix(drawer): addressed issue with inline/static and glass bgs#8397
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis PR changes inline drawer panel default background from primary to floating, adds an md breakpoint override to use primary background at medium widths, and moves inline/static glass styling into the min-width: md responsive block with theme-scoped selectors and backdrop-filter rules. ChangesDrawer Panel Theming and Glass Styling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
|
Preview: https://pf-pr-8397.surge.sh A11y report: https://pf-pr-8397-a11y.surge.sh |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/patternfly/components/Drawer/drawer.scss (1)
959-961: 💤 Low valueRemove commented-out code.
This commented-out empty selector adds no value and should be removed to keep the codebase clean. If this is intended for future use, add a TODO comment explaining the purpose.
♻️ Proposed cleanup
-// :where(.pf-v6-theme-glass) { - -// } -🤖 Prompt for 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. In `@src/patternfly/components/Drawer/drawer.scss` around lines 959 - 961, Remove the commented-out empty selector block in drawer.scss (the commented lines containing :where(.pf-v6-theme-glass)), as it adds no value; delete the commented code or, if it's intentionally reserved for future work, replace it with a single-line TODO comment explaining the intended purpose and referencing .pf-v6-theme-glass so the intent is explicit.
🤖 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/Drawer/drawer.scss`:
- Line 666: The selector `@at-root :where(:root(.pf-v6-theme-glass))
&.pf-m-glass` is invalid because `:root()` functional syntax is not allowed;
replace that pattern with the correct selector used elsewhere:
`:root.pf-v6-theme-glass` so the rule targeting `.pf-m-glass` inside the Drawer
glass theme is parsed correctly; update the `@at-root` line and keep the rest of
the rule intact so glass styling for inline/static drawer panels at md+ applies.
---
Nitpick comments:
In `@src/patternfly/components/Drawer/drawer.scss`:
- Around line 959-961: Remove the commented-out empty selector block in
drawer.scss (the commented lines containing :where(.pf-v6-theme-glass)), as it
adds no value; delete the commented code or, if it's intentionally reserved for
future work, replace it with a single-line TODO comment explaining the intended
purpose and referencing .pf-v6-theme-glass so the intent is explicit.
🪄 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: 1499991e-4ad7-4256-9650-ebc01c5b93d9
📒 Files selected for processing (1)
src/patternfly/components/Drawer/drawer.scss
|
🎉 This PR is included in version 6.5.0-prerelease.91 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fixes #8340
Summary by CodeRabbit