Skip to content

Style the header's SVG social icons as brand-coloured tiles - #42

Merged
paul999 merged 1 commit into
masterfrom
issue-74/header-social-icons
Sep 19, 2026
Merged

paul999 merged 1 commit into
masterfrom
issue-74/header-social-icons

Conversation

@paul999

@paul999 paul999 commented Sep 19, 2026

Copy link
Copy Markdown
Member

Styles for the new header social icons from paul999/phpbb-website-private#74 (WEBSITE-1433).

The page headers of all three sites (the Symfony site, the forum's prosilver header and the old site) are switching their RSS, Facebook and Twitter PNGs to inline SVG icons for RSS, Facebook, X and Discord, inside a .social-icons container. This PR adds the styles for that markup:

  • Each link is a 20px rounded tile in its brand's colour, with the glyph in white (fill: currentColor).
  • The tiles sit in a flex row 6px apart, and their right edge lines up with where the old icons ended.
  • Hover and focus draw a white ring, which also works on the black X tile. :focus-visible adds an outline for keyboard users.
  • index.css now imports website.css?6, so browsers fetch the changed file again.

The existing #top-social-icons img rules stay until every deployed header uses the new markup. The new rules only match .social-icons, so merging and deploying this before the header changes has no visible effect. The PNGs can be removed in a follow-up.

This is an interim solution until the website has its own icon font (paul999/phpbb-website-private#40).

Merge order

  1. This PR.
  2. composer update phpbb/website-assets in phpbb-website-private and in phpbb/website (the old site's copy also serves /assets/ to the forum).
  3. The header changes: branch issue-74/header-social-icons in phpbb-website-private, phpbb/website and phpbb3-website (website-proteus).

The header markup must not be deployed before this CSS, or the icons render as small unstyled black glyphs.

🤖 Generated with Claude Code

The page headers of the Symfony site, the forum and the old site are
switching their social icons from PNGs to inline SVG glyphs with a
.social-icons container (paul999/phpbb-website-private#74). Give each
link a 20px rounded tile in its brand's colour with the glyph in white,
laid out with flexbox and an even 6px spacing, plus hover and focus
states. Bump the website.css import in index.css so browsers fetch it
again.

The PNG rules stay until every deployed header uses the new markup.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 19, 2026 15:18
@paul999
paul999 merged commit 3198131 into master Sep 19, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The reviewed changes are scoped and have no unresolved blocking issues.

Review effort: Lite
Findings: None

What changed in this PR

Adds scoped styling for inline SVG social icons and updates stylesheet cache busting.

Changes:

  • Adds brand-coloured tiles, spacing, SVG fills, and focus states.
  • Updates the website.css cache version.
File Summary
css/​website.css Styles social icon tiles and interactions.
css/​index.css Bumps the stylesheet cache version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants