chore(primary details): fix drawer and toolbar - #8509
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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 Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughPrimary Detail demos now use the ChangesPrimary Detail inline drawer demos
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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-8509.surge.sh A11y report: https://pf-pr-8509-a11y.surge.sh |
| @@ -200,7 +205,7 @@ wrapperTag: div | |||
| {{#> card}} | |||
There was a problem hiding this comment.
Should we also remove this card? It doesn't go around the examples properly anymore. If so we would want to take "card" out of the example name.
| @@ -238,7 +243,7 @@ wrapperTag: div | |||
| {{#> card}} | |||
Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
removed card from mobile example
There was a problem hiding this comment.
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/demos/PrimaryDetail/examples/PrimaryDetail.md`:
- Line 17: Update all three primary-detail-template invocations in the demos to
restore the inline drawer configuration by passing
primary-detail-template--modifier="pf-m-inline" and drawer--IsInline="true"
alongside the existing parameters.
🪄 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 Plus
Run ID: 5e1a0ca2-2487-4657-9d0c-eb27999cb32b
📒 Files selected for processing (4)
src/patternfly/demos/PrimaryDetail/examples/PrimaryDetail.mdsrc/patternfly/demos/PrimaryDetail/primary-detail-template-card-data-list.hbssrc/patternfly/demos/PrimaryDetail/primary-detail-template-card-toolbar.hbssrc/patternfly/demos/PrimaryDetail/primary-detail-template-simple-list.hbs
💤 Files with no reviewable changes (3)
- src/patternfly/demos/PrimaryDetail/primary-detail-template-simple-list.hbs
- src/patternfly/demos/PrimaryDetail/primary-detail-template-card-toolbar.hbs
- src/patternfly/demos/PrimaryDetail/primary-detail-template-card-data-list.hbs
|
|
||
| <!-- Drawer --> | ||
| {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") primary-detail-template--modifier="pf-m-inline-on-2xl" drawer-panel--IsOpen="true"}} | ||
| {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") drawer-panel--IsOpen="true"}} |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major
Restore the inline modifier in all three demos.
These invocations now omit both primary-detail-template--modifier="pf-m-inline" and drawer--IsInline. Since primary-detail-template.hbs forwards the modifier to drawer.hbs, these examples render as regular drawers rather than inline drawers, so the PR objective is not met.
Proposed fix
- {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") drawer-panel--IsOpen="true"}}
+ {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") primary-detail-template--modifier="pf-m-inline" drawer-panel--IsOpen="true"}}
- {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer")}}
+ {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") primary-detail-template--modifier="pf-m-inline"}}
- {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") drawer-panel--IsOpen="true"}}
+ {{#> primary-detail-template primary-detail-template--id=(concat page-template--id "-drawer") primary-detail-template--modifier="pf-m-inline" drawer-panel--IsOpen="true"}}Also applies to: 68-68, 115-115
🤖 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/demos/PrimaryDetail/examples/PrimaryDetail.md` at line 17,
Update all three primary-detail-template invocations in the demos to restore the
inline drawer configuration by passing
primary-detail-template--modifier="pf-m-inline" and drawer--IsInline="true"
alongside the existing parameters.
mcoker
left a comment
There was a problem hiding this comment.
----------
| groovy |
----------
/
🎃
🎽
👖
🛼
|
🎉 This PR is included in version 6.6.0-prerelease.24 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* fix: address word-break/overflow-wrap bug (#8487) * chore(input group): add radius modifier (#8483) * fix(table): nested table sorting (#8491) * fix(tree-view): revert caret rotations (#8490) * fix(a11y): ignore target-size rule for WCAG 2.2 bump (#8493) * fix(tree): update tree table and DLS tree toggle icon direction (#8502) * fix: update disabled description to use text color token (#8497) * fix(plain actions): update tokens to vertical-plain (#8495) * fix: address bottom pagination bugs (#8498) * fix: address bottom pagination bugs * fix: round border-radius on default bottom in glass * chore(primary details): fix drawer and toolbar (#8509) * fix(modal): footer action spacing (#8526) --------- Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com> Co-authored-by: Andrew Ronaldson <aronalds@redhat.com> Co-authored-by: Jake Miller <jake83miller@gmail.com> Co-authored-by: Eric Olkowski <70952936+thatblindgeye@users.noreply.github.com> Co-authored-by: Jake Miller <jakmille@redhat.com>

Closes #8488
This addresses issues found in the 6.5 staging audit.
I moved the drawers below the toolbar and made them inline so they work better in glass mode.
Also changed the inset on the toolbar in some examples where it looked broken.
Summary by CodeRabbit