Skip to content

Add missing main-content IDs for skip-link accessibility#437

Merged
d-oit merged 1 commit into
mainfrom
feat/ux-skip-link-fix-13645533963985286272
Jun 5, 2026
Merged

Add missing main-content IDs for skip-link accessibility#437
d-oit merged 1 commit into
mainfrom
feat/ux-skip-link-fix-13645533963985286272

Conversation

@d-oit
Copy link
Copy Markdown
Owner

@d-oit d-oit commented Jun 5, 2026

Implemented a micro-UX and accessibility improvement by adding the missing id="main-content" to primary content areas in the Reader and Admin pages. This makes the existing "Skip to main content" link functional for keyboard and screen-reader users, adhering to WCAG 2.4.1 (Bypass Blocks) and 2026 UX standards.


PR created automatically by Jules for task 13645533963985286272 started by @d-oit

This change ensures that the "Skip to main content" accessibility feature is functional across all primary views. Specifically:
- Added `id="main-content"` to the `<main>` tag in `ReaderViewer.tsx`.
- Updated top-level containers in `BooksPage.tsx`, `GrantsPage.tsx`, and `AuditLogPage.tsx` from `<div>` to `<main id="main-content">`.
- Added a unit test to `ReaderViewer.test.tsx` to verify the presence of the ID.
- Verified semantic HTML landmarks are correctly applied for screen-reader navigation.

Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 5, 2026

Deploying do-epub-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9f21b47
Status: ✅  Deploy successful!
Preview URL: https://c9a3d621.do-epub-studio.pages.dev
Branch Preview URL: https://feat-ux-skip-link-fix-136455.do-epub-studio.pages.dev

View logs

@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@codacy-production
Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 6 duplication

Metric Results
Complexity 0
Duplication 6

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

🚀 Performance Report

⚡ Startup & Interaction

Metric Value (ms) Limit (ms) Trend Status
First Contentful Paint 220.00 1500 -
Chapter Switch Latency 0.00 300 -
Offline Rehydrate Time 218.50 800 -
DOM Interactive 26.20 - - -
Load Event End 143.70 - - -

🛠️ CI & Workflow

Metric Value Limit Status
Total CI Duration 4.98 min 15.00 min
Pnpm Cache Hit Hit -

@d-oit d-oit merged commit b471191 into main Jun 5, 2026
20 checks passed
@d-oit d-oit deleted the feat/ux-skip-link-fix-13645533963985286272 branch June 5, 2026 07:48
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.

1 participant