Skip to content

fix: preserve footer social target sizes - #2457

Closed
vsolano9 wants to merge 1 commit into
expressjs:mainfrom
vsolano9:codex/issue-2456-footer-social-targets
Closed

fix: preserve footer social target sizes#2457
vsolano9 wants to merge 1 commit into
expressjs:mainfrom
vsolano9:codex/issue-2456-footer-social-targets

Conversation

@vsolano9

Copy link
Copy Markdown

Summary

  • keep all footer social icon boxes at 16 by 16 pixels on narrow screens
  • give each social link a minimum 24 by 24 pixel target
  • wrap and tighten the narrow-screen social row instead of compressing its icons

Fixes #2456

Validation

  • npm run check
  • npm run test:unit (52 passed)
  • npm run build (2,307 pages built)
  • focused 390 by 844 Playwright regression in Chromium, Firefox, and WebKit (3 passed)
  • measured all seven social links at 24 by 24 pixels and all seven SVG boxes at 16 by 16 pixels, with no horizontal overflow

The complete local homepage run passed all 24 non-locale cases. Its 27 locale-switch cases reproduced the known local dev-server 404 mismatch; the supported Netlify preview workflow will run the complete browser suite.

AI assistance

OpenAI Codex assisted with implementation, test authoring, validation, and pull request preparation.

Assisted-by: OpenAI Codex
@vsolano9
vsolano9 requested a review from a team as a code owner July 22, 2026 11:48
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 6863310
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a60ae03dd9f0a0008a12443
😎 Deploy Preview https://deploy-preview-2457--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🟢 up 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@aditya4oo4

Copy link
Copy Markdown

Hi, if this issue is still available, please assign it to me.

@vsolano9

vsolano9 commented Sep 1, 2026

Copy link
Copy Markdown
Author

This PR already implements the footer fix and is waiting on maintainer review, so the issue is not available to assign.

gap: var(--space-6);

a {
display: inline-flex;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

these changes are not required

color: var(--color-icon-primary);
width: var(--size-4);
height: var(--size-4);
flex-shrink: 0;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

width and height is not required for icons, already default size is given to icons.

Also I would have put flex-shrink=0 on <li> because they are direct children of flex box <ul>.


@media (--xs-only) {
padding: var(--space-4) 0 var(--space-6);
flex-wrap: wrap;

@ShubhamOulkar ShubhamOulkar Sep 2, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is right approach but need to add this for all view port widths. see issue #2494 (review)

await expect(rssLink).toBeVisible();
});

test('should preserve minimum social icon and target sizes on narrow screens', async ({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am +1 on adding tests on target sizes for all the buttons and sidebar. Feel free to open PR's for it.

@ShubhamOulkar

Copy link
Copy Markdown
Member

Thank you @vsolano9 for opening this PR. The icons were shrinking because there wasn’t enough space in the footer social <ul> container. PR #2494 fixes this issue, so I’m closing this PR.

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.

footer: kawaii button shrinking social icons below 400px

3 participants