feat(transfers): add print styles for dashboard (#217) - #270
Merged
arisu6804 merged 1 commit intoJul 24, 2026
Merged
Conversation
- Add global print.css with @media print rules: - White background, black text for readability - Hide navbar, footer, skip-link, scroll-to-top - Hide all .btn elements - Print-friendly status badge colors - Preserve chart bar colors via print-color-adjust - Set @page margin to 1.5cm - Add page-specific print rules to Transfers.css (hide filters) - Add component-specific print rules to Chart.css - Import print.css in App.jsx - Add 14 tests verifying print style rules - Update README.md with print support documentation Closes RemitFlow#217
Contributor
|
LGTM — clean, thanks! 🚀 |
Contributor
|
Reads well. 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add print styles for the dashboard (Transfers page) so users can print their transfer overview with a clean, readable layout — hiding chrome, interactive controls, and optimising colours for paper.
Changes Made
New files
src/print.css— Global@media printstylesheet:.btnelements#cccborders to surface elements (transfer rows, chart, cards)print-color-adjust: exact@pagemargin to 1.5cmtest/print-styles.test.js— 14 tests covering:@pagemargin)Modified files
src/App.jsx— Import./print.csssrc/pages/Transfers.css— Add@media printto hide filters and buttonssrc/components/Chart.css— Add@media printfor border, break-inside, tooltip/download hidingREADME.md— Document print support under FeaturesTesting
AppContext.wallet.test.jsxandselect-all-across-pages.test.jsxare unrelated)npx vitest run test/print-styles.test.js test/contrast.test.js test/touch-targets.test.js test/safe-area.test.js test/locale-context.test.jsx test/components/Chart.test.jsx test/integration/transfers-filter.test.jsx test/unit/format.test.js— 8 files, 94 tests passedChecklist
Closes #217