Repository navigation
Fresh paint: Firefox fonts and purples, updated footer, accessible links - #512
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the Firefox Public Data Report branding refresh.
No open issues 🎉
What changed in this PR
Refreshes the Firefox Public Data Report with Mozilla typography, Firefox colours, and a Protocol-derived footer. The changes address the font, link-hover, and favicon issues in #468, #491, and #462.
Changes:
- Updates typography, headings, single-population charts, and navigation buttons to the current brand.
- Replaces the footer and social assets, improves link contrast and focus states, and corrects icon references.
- Adds visual-style and footer-link tests, updates asset documentation, and simplifies Stylus lint configuration.
| File | Description |
|---|---|
| tests/playwright/specs/links.spec.js | Tests link hover states and button colours. |
| tests/playwright/specs/footer.spec.js | Tests footer content, destinations, and new-tab behaviour. |
| src/tests/jest/Chart.test.jsx | Checks single-population colours and area layering. |
| src/components/views/styl/StripedHeader.styl | Replaces yellow stripes with underlined headings. |
| src/components/views/styl/Spinner.styl | Removes obsolete lint-suppression comments. |
| src/components/views/styl/NextButton.styl | Adds purple button styling and interaction states. |
| src/components/views/styl/includes/lib.styl | Defines shared brand fonts and colours. |
| src/components/views/styl/Header.styl | Adds header hover and keyboard-focus styling. |
| src/components/views/styl/Footer.styl | Introduces responsive Protocol-derived footer styles. |
| src/components/views/styl/DashboardSection.styl | Enlarges dashboard section titles. |
| src/components/views/styl/Chart.styl | Removes an unnecessary lint suppression. |
| src/components/views/styl/Application.styl | Updates fonts, typography, heading colours, and link states. |
| src/components/views/NextButton.jsx | Adds a decorative forward icon. |
| src/components/views/img/moz-wordmark-light-reverse.svg | Removes the previous Mozilla wordmark. |
| src/components/views/img/icons/forward-16.svg | Adds the button’s forward-arrow asset. |
| src/components/views/img/footer/youtube-white.svg | Adds the YouTube footer icon. |
| src/components/views/img/footer/tiktok-white.svg | Adds the TikTok footer icon. |
| src/components/views/img/footer/spotify-white.svg | Adds the Spotify footer icon. |
| src/components/views/img/footer/linkedin-white.svg | Adds the LinkedIn footer icon. |
| src/components/views/img/footer/instagram-white.svg | Adds the Instagram footer icon. |
| src/components/views/img/footer/firefox-logo-white.svg | Adds the Firefox footer logo. |
| src/components/views/img/footer/bluesky-white.svg | Adds the Bluesky footer icon. |
| src/components/views/Footer.jsx | Replaces footer markup and updates link groups. |
| src/components/views/fonts/FiraSans/firasansot-light-webfont.svg | Removes the legacy Fira Sans SVG font. |
| src/components/views/Chart.jsx | Uses purple single-population colours and draws shading beneath axes. |
| public/manifest.json | Corrects icon paths and declares favicon sizes. |
| index.html | Adds the Apple touch-icon reference. |
| docs/architecture/frontend.md | Updates the font and image directory descriptions. |
| CONTRIBUTING.md | Documents the replacement font families. |
| AGENTS.md | Updates font and asset documentation. |
| .stylintrc | Recognizes modern CSS properties and disables global duplicate checks. |
Review effort: Balanced
stephaniehobson
force-pushed
the
468--fresh-paint
branch
from
November 18, 2026 16:41
cd2d50c to
b0c7add
Compare
Replace Fira Sans with Mozilla's brand fonts, copied from springfield: the Mozilla Headline and Mozilla Text variable fonts (weights 200-700) plus static Mozilla Text italics, since the variable font has no italic axis. Only woff2 is shipped. Body text uses Mozilla Text and headings use Mozilla Headline, through new $font-family-text and $font-family-headline variables based on springfield's tokens. Set the type sizes for the new fonts: body text is 16px at every width, section headings (.contrasted) are 32px with space above them, and dashboard section titles are 1.5rem.
Swap the old #f5e14a yellow for Firefox's soft purple (#F1E7F8) on the site title box and the next button. Striped headers drop the skewed yellow stripe background for a bold heading over a solid underline, so diagonal-line_yellow.png is no longer used and is removed. Headings use Firefox's dark purple (#210340, a new $dark-purple variable): as the text colour of every heading, which also colours the striped headers' underline, and as the background of the white-text section headings (.contrasted).
Port Protocol's footer markup and styles into Footer.jsx and Footer.styl without depending on Protocol, dropping the mzp- prefix. Sections stay expanded on small screens rather than porting Protocol's collapse script, and the footer keeps the site's content width. Restyle it for Firefox: a #210340 background, #C8B2F6 secondary text, and the 2026 white Firefox logo in place of the Mozilla one. Social accounts now match bedrock's footer and sit at the end of each org's column. The outdated Firefox links become Download Firefox, Release Notes, Support, and Firefox Privacy Notice; the Mozilla column gains Mozilla.org and Data Privacy Principles and loses Contact Us. Footer images now come from Protocol and springfield; the old wordmark and PNG social sprite are removed.
stylint 2.0.0's list of valid properties predates gap, mask, text-underline-offset, text-decoration-thickness, and contain. Its customProperties option extends that list, but stylint reads `mixins || customProperties`, so the empty mixins array meant customProperties was never used. Drop mixins and list the properties. Turn off globalDupe (stylint's default) so overriding a selector from another file, as Spinner.styl does on purpose, isn't a warning. Remove the inline ignores these two changes make unnecessary.
Body links move from #0070ff (4.41:1 on white, below WCAG AA) to Protocol's link blue #0060df (5.62:1). They stay unadorned and gain an underline and #0250bb on hover and keyboard focus, plus a focus outline. Fixes the missing hover states in #491. Header: the site title loses its shaded box and is underlined on hover; nav links get a heavier, offset underline on hover and focus. The "Proceed to" next button now uses Flare's primary button styles with Flare's forward arrow icon, replacing the flat box and CSS arrow. In the footer, the p/span/ul resets use :where() so the c-footer-* rules override them without a .c-footer prefix, and the focus outline is white so it shows on the dark background.
Replace the 2017 Firefox Quantum favicon with the current Firefox logo,
copied from springfield's favicons (the ones its Flare template uses):
favicon.ico now carries 48, 32, and 16px images, favicon-196.png is
updated, and a 180px apple-touch-icon is added and linked.
The manifest's icon paths were relative ("icons/favicon.ico"), which
resolve against /manifest.json to /icons/ rather than /img/icons/,
where the files are served. Make them absolute so the manifest finds
the icons, and list all three sizes in the .ico.
A chart with a single population now draws its line in Firefox purple (#7543E3) over an opaque pale purple area (#F1E7F8), replacing the first palette blue and a 20% blue fill. The same purple colours that population's hover dot and readout. The opaque area is drawn first, so the axis lines and the dashed annotation markers stay visible on top of it.
The chart spinner's aspect-ratio, which arrived with #509, was the one remaining property ignored inline because stylint 2.0.0 doesn't know it.
The short-page footer checks from #509 used a 375×1000 window, sized for the old footer. The new footer keeps its sections expanded on small screens and is about 1030px tall at that width, so no page fits; the footer sitting below the window there is expected.
stephaniehobson
force-pushed
the
468--fresh-paint
branch
from
November 18, 2026 17:46
b0c7add to
ac2a2f6
Compare
stephaniehobson
added a commit
that referenced
this pull request
Nov 19, 2026
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.
Restyles the site with Mozilla's current brand. Each commit is one decision and can be reviewed on its own.
Fixes #468, fixes #491, fixes #462.
Commits
#F1E7F8replaces the yellow. Striped headers become a bold heading over an underline, anddiagonal-line_yellow.pngis removed. All headings use dark purple#210340($dark-purple), which is also the background of the.contrastedsection headings.mzp-prefix, so Protocol isn't a dependency. The footer gets a#210340background, the 2026 Firefox logo, social accounts matching bedrock's footer, and updated Mozilla and Firefox link columns.mixinsarray in.stylintrcstoppedcustomPropertiesfrom being read. With that fixed, andglobalDupeturned off, most of the// @stylint ignorecomments go away.#0070ff(4.41:1 on white, below WCAG AA) to Protocol's#0060df(5.62:1)./icons/instead of/img/icons/. They're now absolute.#7543E3line over opaque#F1E7F8shading, drawn beneath the axes and annotation markers.Notes for review
Footer.jsxandFooter.stylentirely, so whichever merges second will need to resolve conflicts.Testing
npm run lint,npm run test:jest(121 tests),npm run build, andnpm run test:playwright:recorded(101 tests) all pass. Every commit lints and builds on its own.