Skip to content

Fix mobile sidebar closed state#170

Merged
ootakazuhiko merged 1 commit into
mainfrom
codex/ai-testing-issue168-sidebar-overlap-20260607
Jun 7, 2026
Merged

Fix mobile sidebar closed state#170
ootakazuhiko merged 1 commit into
mainfrom
codex/ai-testing-issue168-sidebar-overlap-20260607

Conversation

@ootakazuhiko

Copy link
Copy Markdown
Collaborator

Summary

  • keep the closed mobile/tablet sidebar drawer off-canvas with !important so the later desktop .book-sidebar { transform: translateX(0); } rule in main.css cannot override it
  • apply the same fix to both tracked published CSS copies
  • leave the checked/open drawer rule unchanged so the hamburger menu still opens the TOC

Context: itdojp/it-engineer-knowledge-architecture#168

Verification

  • npm ci
  • npm run lint:light
  • npm run check-conflicts
  • cd docs && BUNDLE_PATH=/home/devuser/work/CodeX/booksB/.codex-local/tmp/ai-testing-bundle-path BUNDLE_APP_CONFIG=/home/devuser/work/CodeX/booksB/.codex-local/tmp/ai-testing-bundle-config bundle exec jekyll build
  • npm run build
  • git diff --check
  • local Pages visual check with Chromium: books=1 pages=10 ok=10 warn=0 fail=0
  • direct Playwright probe over / and /chapters/chapter-01-ai-driven-development/ at 480/768/820/1024/1280 confirmed the closed drawer is off-canvas on <=1024px, the toggle opens it, and desktop layout remains visible

Notes

  • npm ci reports existing dependency audit findings; this PR does not change dependencies.
  • npm run build regenerates broad docs/ content and .github/workflows/build.yml; those generated artifacts were not included because this PR is scoped to the published CSS fix.

Copilot AI review requested due to automatic review settings June 7, 2026 04:22
@ootakazuhiko

Copy link
Copy Markdown
Collaborator Author

@copilot review

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://itdojp.github.io/ai-testing-strategy-book/pr-preview/pr-170/

Built to branch gh-pages at 2026-06-07 04:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

📚 Preview Deployment

Your changes have been deployed to a preview environment:

🔗 Preview URL: https://itdojp.github.io/ai-testing-strategy-book/pr-preview/pr-170/


Preview Details
  • Branch: codex/ai-testing-issue168-sidebar-overlap-20260607
  • Commit: ffc014c
  • Updated: Sun, 07 Jun 2026 04:22:17 GMT

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown

@copilot review

Reviewed the current PR changes; no additional code changes are needed for this comment.

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.

Pull request overview

This PR fixes an ordering/cascade issue where the desktop .book-sidebar { transform: translateX(0); } rule in main.css could override the intended closed mobile/tablet drawer state, leaving the TOC covering content on smaller viewports. It does so by making the closed-state transform declaration !important within the @media (max-width: 1024px) rules, while leaving the checked/open rule behavior intact.

Changes:

  • Make the closed mobile/tablet sidebar transform rule !important so it can’t be overridden by the later desktop default in main.css.
  • Apply the same cascade fix to both published CSS copies that are tracked in the repo.
  • Add explanatory inline CSS comments documenting the cascade rationale.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/assets/css/mobile-responsive.css Ensures the closed sidebar stays off-canvas on ≤1024px by making the closed-state transform !important.
ai-testing-strategy-book/docs/assets/css/mobile-responsive.css Mirrors the same closed-state !important transform fix in the second published CSS copy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ootakazuhiko ootakazuhiko merged commit f276327 into main Jun 7, 2026
8 checks passed
@ootakazuhiko ootakazuhiko deleted the codex/ai-testing-issue168-sidebar-overlap-20260607 branch June 7, 2026 04:24
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.

3 participants