feat(glass): backgrounds for glass and compass - #8356
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 (2)
WalkthroughMoves glass/felt background-image handling into theme-scoped token mixins, removes global background-image rules from patternfly.scss, adds local glass/felt token modules, and restructures Compass by introducing a Changes
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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|
Preview: https://pf-pr-8356.surge.sh A11y report: https://pf-pr-8356-a11y.surge.sh |
|
A11y report: https://pf-pr-8356-a11y.surge.sh |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/patternfly/components/Compass/examples/Compass.md (1)
60-84:⚠️ Potential issue | 🟠 MajorMove the masthead inside the docked container.
The docked example renders
mastheadas a sibling outsidecompass-container, butcompass--HasDock=trueapplies thepf-m-dockedclass tocompass-containeritself. The docked styles defined incompass.scssat lines 116–120 target.pf-v6-c-compass__container.pf-m-docked > .pf-v6-c-masthead—a direct child relationship that the current example does not satisfy. Movemastheadinsidecompass-containerso the docked masthead styles apply as intended.Proposed fix
{{#> compass compass--HasDock=true}} - {{#> masthead masthead--IsDisplayInline=true}} - {{#> masthead-main}} - masthead main - {{/masthead-main}} - {{#> masthead-content}} - masthead content - {{/masthead-content}} - {{/masthead}} {{#> compass-container}} + {{#> masthead masthead--IsDisplayInline=true}} + {{#> masthead-main}} + masthead main + {{/masthead-main}} + {{#> masthead-content}} + masthead content + {{/masthead-content}} + {{/masthead}} {{#> compass-dock}} dock {{/compass-dock}}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/patternfly/components/Compass/examples/Compass.md` around lines 60 - 84, The example places the masthead outside compass-container so the docked styles on compass (compass--HasDock=true) don’t apply; move the entire masthead block (the {{#> masthead ...}} ... {{/masthead}} section) so it is a direct child inside the {{#> compass-container}} block (i.e., place masthead before or after {{#> compass-dock}} but nested within {{#> compass-container}}) so the selector targeting .pf-v6-c-compass__container.pf-m-docked > .pf-v6-c-masthead matches.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@src/patternfly/components/Compass/examples/Compass.md`:
- Around line 60-84: The example places the masthead outside compass-container
so the docked styles on compass (compass--HasDock=true) don’t apply; move the
entire masthead block (the {{#> masthead ...}} ... {{/masthead}} section) so it
is a direct child inside the {{#> compass-container}} block (i.e., place
masthead before or after {{#> compass-dock}} but nested within {{#>
compass-container}}) so the selector targeting
.pf-v6-c-compass__container.pf-m-docked > .pf-v6-c-masthead matches.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: fa484469-2f36-42c4-8224-e22eae92bd55
📒 Files selected for processing (13)
src/patternfly/base/normalize.scsssrc/patternfly/base/patternfly-variables.scsssrc/patternfly/base/tokens/tokens-local-felt-glass-dark.scsssrc/patternfly/base/tokens/tokens-local-felt-glass.scsssrc/patternfly/base/tokens/tokens-local-glass-dark.scsssrc/patternfly/base/tokens/tokens-local-glass.scsssrc/patternfly/base/tokens/tokens-local.scsssrc/patternfly/components/Compass/compass-container.hbssrc/patternfly/components/Compass/compass.hbssrc/patternfly/components/Compass/compass.scsssrc/patternfly/components/Compass/examples/Compass.mdsrc/patternfly/demos/Compass/compass--card-view.hbssrc/patternfly/patternfly.scss
💤 Files with no reviewable changes (1)
- src/patternfly/patternfly.scss
…ackground semantic tokens with fallbacks, update compass structure to include compass-container partial, update documentation
0c6d117 to
5645dde
Compare
… styles stemming from compass and appropriate modifier classes, move token from pf-variables file to correct local file, remove specific language from docs, cleanup unintended ai interference
… removed with the removal of the backgrounds
|
🎉 This PR is included in version 6.5.0-prerelease.88 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes: #8287
Implements a global background image strategy for glass themes.
Background image handling:
Compass component updates:
Summary by CodeRabbit
New Features
Style
Documentation