Skip to content

fix(base): name calendar items for accessibility - #2996

Merged
huacnlee merged 1 commit into
mainfrom
fix/calendar-accessible-names
Sep 7, 2026
Merged

fix(base): name calendar items for accessibility#2996
huacnlee merged 1 commit into
mainfrom
fix/calendar-accessible-names

Conversation

@huacnlee

@huacnlee huacnlee commented Sep 7, 2026

Copy link
Copy Markdown
Member

Calendar buttons had no accessible names when a presentation assigned button roles, leaving assistive technology unable to identify dates or month/year choices. Set names alongside the default labels, with full ISO dates for day cells so adjacent-month days remain distinguishable. Presentations can still override names through aria_label.

Validation: a regression test inspects item accessibility metadata in day, month, and year views. It fails on the previous implementation and passes with the fix. Calendar tests and downstream gpui-omarchy integration tests were also exercised with the patch.

Assign accessible labels alongside the visible labels and use complete ISO dates for day cells. Verify item names in day, month, and year views.

Co-authored-by: Codex <codex@openai.com>
@huacnlee
huacnlee merged commit 9796bb7 into main Sep 7, 2026
9 checks passed
@huacnlee
huacnlee deleted the fix/calendar-accessible-names branch September 7, 2026 12:08
feigeCode pushed a commit to feigeCode/gpui-component that referenced this pull request Sep 7, 2026
Calendar buttons had no accessible names when a presentation assigned
button roles, leaving assistive technology unable to identify dates or
month/year choices. Set names alongside the default labels, with full
ISO dates for day cells so adjacent-month days remain distinguishable.
Presentations can still override names through `aria_label`.

Validation: a regression test inspects item accessibility metadata in
day, month, and year views. It fails on the previous implementation and
passes with the fix. Calendar tests and downstream gpui-omarchy
integration tests were also exercised with the patch.

Co-authored-by: Codex <codex@openai.com>
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