158 polish visual consistency and mobile browsing #185
+511
−109
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.
Polish visual consistency and mobile browsing
Closes #158
Summary
This acts on peer feedback about inconsistent formatting between the search, report and detail pages, and about the search page being hard to use on small screens. The brand, color palette and overall layout stay as they were. The changes reuse the existing color tokens and component styles.
Each sub-issue was reviewed and merged into
158-polish-visual-consistency-and-mobile-browsingin its own PR. This PR adds nothing new.Visual consistency
formatCountry) is used for the filter, the chips, the list, the map labels, the detail heading and the page title. A code that isn't a country shows as-is in capitals, and a missing country shows "Unknown country".BackLinkcomponent with the same shape, arrow and spacing in both themes.Mobile browsing
aria-expanded. The active filters stay visible as chips. If the fields are hidden when a filter is removed, focus moves to the button.Desktop looks the same as before.
Accessibility
Tests
BackLink.test.tsx,formatCountry(known, unknown and missing codes), and the Filters toggle and its focus handling.mobile-search.spec.tsandheader.spec.ts, both at phone width.mainand merges cleanly. CI runs everything again here.How to check
npm run dev, then open DevTools device mode at 320 and 375 px, in light and dark mode.