Skip to content

fix(docs): keep homepage slides icon visible on mobile - #78258

Merged
pelikhan merged 2 commits into
mainfrom
pelikhan/mobile-slides-icon
Nov 16, 2026
Merged

pelikhan merged 2 commits into
mainfrom
pelikhan/mobile-slides-icon

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The homepage Slides icon was hidden by the mobile header's generic icon rule, making the presentation inaccessible from the header on phones.

Keep the existing homepage-only icon visible on mobile and preserve its destination, https://gh.io/gh-aw-slides. Give it a 44px touch target and hide the homepage wordmark at narrow widths to avoid crowding. Other docs pages and desktop behavior remain unchanged.

Validation

  • make agent-report-progress passed.
  • 23 focused Playwright checks passed, covering mobile slides navigation, responsive headers, homepage layout, and existing desktop behavior. Used a session-local configuration for Chrome on macOS and the required external gallery snippets.
  • Inspected mobile screenshots and header layout at widths from 320px through the 800px breakpoint.

@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 04:42
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 04:42
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The moderate SiteHeader issue remains active because the restore rule applies to every page, causing the wordmark to appear in narrow docs layouts where it should remain hidden.

1 open issue
What changed in this PR

Updates the responsive docs header so the homepage Slides link remains accessible on mobile while preserving its external destination and touch-target size.

Changes:

  • Keeps the homepage-only Slides icon visible below the mobile breakpoint with a 44px touch target.
  • Hides the homepage wordmark at narrow widths to prevent header crowding.
  • Adds responsive Playwright coverage for Slides visibility, navigation, sizing, ordering, and homepage-only behavior.
  • Reformats the existing mobile responsiveness tests.
File Description
docs/​tests/​mobile-responsive.spec.ts Adds responsive regression tests for mobile Slides visibility, navigation, ordering, touch-target sizing, and homepage-only behavior while reformatting existing tests.
docs/​src/​components/​SiteHeader.astro Adjusts mobile header visibility and Slides sizing while conditionally hiding the homepage wordmark at narrow widths.

Review effort: Lite (dynamic)

Comment thread docs/src/components/SiteHeader.astro Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Visual regression check: docs homepage

Scope: /gh-aw/ homepage only, served from the built docs/dist through a sandbox-local preview bound to 127.0.0.1.

Page Viewport Capture Comparison
/gh-aw/ Mobile 375×812 captured unavailable
/gh-aw/ Tablet 768×1024 captured unavailable
/gh-aw/ Desktop 1440×900 captured unavailable

Visual comparison is unavailable, not unchanged: no baseline is provisioned for this workflow. Full-page screenshots were saved in the run sandbox under /tmp/gh-aw/agent/ and are not attached to this comment.

Accessibility observations

  • The accessibility snapshot shows 4 links without an accessible name (snapshot refs e396, e553, e588, e597). Their markup was not inspected, so the cause is unverified.
  • This is an observation pass, not a full compliance audit.

Console

0 errors. Warnings were WebGL GPU-stall performance messages (ReadPixels) during page load.

Cleanup

Browser closed and preview server stopped. Removing the .playwright-cli session directory from the workspace was denied by tool permissions, so it remains.

Next actions: provide an authorized baseline to enable pixel comparison; give the 4 unnamed links an accessible name.

References: §43805598635

Generated by 👁️ Visual Regression Checker for #78258 · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~1 AIC · ⊞ 3.3K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the header and spec changes with the Impeccable critique and audit lenses, since this is a UI and responsive-layout change.

Header (SiteHeader.astro): looks correct. Slides is rendered only on the homepage (id === ''), so the mobile rule that exposes it cannot leak to other pages. The 44px target is applied. The wordmark is hidden at <=24.74rem only when .site-header-slides is present, so other pages keep their existing 22rem breakpoint. The :has() selector is already used elsewhere in docs/src/styles/chrome.css.

Spec (mobile-responsive.spec.ts): non-blocking. The file is almost fully reformatted (quotes, wrapping, trailing commas). Ignoring that formatting, the assertions are preserved and the new slides tests are additive. Restoring the original style would keep the review focused on the real change.

No blocking issues found.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~1 AIC · ⊞ 4.3K

Comment thread docs/tests/mobile-responsive.spec.ts Resolved
Restore the existing responsive spec to its base formatting and keep all six Slides cases in a focused spec.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan merged commit 5d200cf into main Nov 16, 2026
34 checks passed
@pelikhan
pelikhan deleted the pelikhan/mobile-slides-icon branch November 16, 2026 05:02
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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