style: update expanded BLI row on portfolio and CAN spending page#5490
style: update expanded BLI row on portfolio and CAN spending page#5490
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the expanded-row layout for budget line items shown in the CAN/Portfolio spending tables, switching the expanded content from a flex + manual spacing approach to a USWDS grid-based layout.
Changes:
- Refactored the expanded-row markup to use
grid-row/grid-col*for more consistent alignment. - Reorganized the expanded-row fields into discrete grid columns (Created By, Description, Procurement Shop, SubTotal, Fees).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Based on my review, I'm approving this PR with the following summary:
APPROVE ✅
Summary
PR #5490 makes a clean, focused layout refactor for the expanded budget line item row on portfolio and CAN spending pages.
What Changed
- Converted the expanded row layout from manual flexbox with hardcoded pixel margins (marginLeft: "9.0625rem", marginLeft: "15rem") to a USWDS grid-based approach using grid-row, grid-gap-4, and grid-col-* classes
- Simplified markup structure by flattening nested divs
- No functional changes—purely layout/styling improvements
Verification - ✅ Unit tests pass (2/2 for CANBudgetLineTableRow)
- ✅ All 58 CI checks passing (E2E, a11y, CodeQL, etc.)
- ✅ ESLint clean
- ✅ Maintains semantic HTML structure
(<dl>/<dt>/<dd>) - ✅ No prior review concerns required resolution
Recommendation
Approve—this is a low-risk, maintainability-focused improvement that follows USWDS best practices.
this review is submitted on behalf of Frank Pigeon Jr. via his coding agent.
|
🎉 This PR is included in version 1.359.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
What changed
Updated the layout of the expanded BLI row on the portfolio and CAN spending page.
Issue
#5460
#5485
How to test
A11y impact
A11Y-SUPPRESSIONmetadata (owner, expires, rationale)Screenshots
Definition of Done Checklist