Skip to content

fix(a11y): set initial focus for Air Quality, UV Index, Discussion dialogs#420

Merged
Orinks merged 11 commits intodevfrom
fix/accessiweather-issue-409
Mar 5, 2026
Merged

fix(a11y): set initial focus for Air Quality, UV Index, Discussion dialogs#420
Orinks merged 11 commits intodevfrom
fix/accessiweather-issue-409

Conversation

@Orinks
Copy link
Copy Markdown
Owner

@Orinks Orinks commented Mar 2, 2026

Summary

  • Air Quality, UV Index, and Discussion dialogs now call SetFocus() on the primary content control when opened, so NVDA (and other screen readers) announce meaningful content immediately
  • When data is present, focus lands on the hourly forecast TextCtrl; when no data is available, focus lands on the Close button
  • Discussion dialog focuses the discussion_display text control

Closes #409

Test plan

  • Open Air Quality dialog with data available — verify screen reader announces hourly forecast content
  • Open Air Quality dialog with no data — verify screen reader announces Close button
  • Open UV Index dialog with data — verify screen reader announces hourly forecast content
  • Open UV Index dialog with no data — verify screen reader announces Close button
  • Open Discussion dialog — verify screen reader announces discussion text area
  • Verify Tab navigation still works correctly in all three dialogs

🤖 Generated with Claude Code

Orinks and others added 5 commits March 3, 2026 17:14
…iscussion dialogs

NVDA announces nothing useful when these dialogs open because no control
receives focus. Add SetFocus() calls so screen readers land on the primary
content control (hourly forecast TextCtrl when data is present, Close
button otherwise; discussion_display for the Discussion dialog).

Closes #409

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cover the SetFocus calls added in 05b3e6c for screen reader accessibility
(issue #409). Five tests verify that focus lands on _hourly_display when
data exists and on the Close button otherwise (AQ & UV), plus discussion_display
for DiscussionDialog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Orinks Orinks force-pushed the fix/accessiweather-issue-409 branch from eef010a to b523bc2 Compare March 3, 2026 17:15
@Orinks Orinks enabled auto-merge (squash) March 5, 2026 04:04
@Orinks Orinks merged commit 4cd2c55 into dev Mar 5, 2026
6 checks passed
@Orinks Orinks deleted the fix/accessiweather-issue-409 branch March 5, 2026 04:09
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