Repository navigation
fix(site/src/modules/notifications): expose inbox notifications as a list - #31602
Merged
Merged
Conversation
jeremyruppel
marked this pull request as ready for review
October 30, 2026 23:33
bartekgatzcoder
approved these changes
Nov 1, 2026
bartekgatzcoder
left a comment
Collaborator
There was a problem hiding this comment.
Inbox notifications are now listitems in a list named "Notifications", with Load more outside the list, which gives NVDA the "n of N" position that DEQ-533 asks for. In the WithLoadMore story, the accessibility tree shows the list with 3 items, and the list border keeps the separator above Load more. No nits. Follow-ups for pre-existing problems: DEQ-610 (mark as read cannot be reached by keyboard), DEQ-611 (popover dialog has no name), and a comment on DEQ-508 (the bell button's name).
🤖 Generated by Coder Agents on behalf of @bartekgatzcoder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each inbox notification had
role="menuitem", but there was norole="menu"owner and no menu keyboard model. NVDA therefore could not announce a notification's position, such as "1 of 6". Notifications are content with their own links and buttons, not menu commands. They are nowrole="listitem"inside arole="list"named "Notifications", and screen readers get the set size and position from the list."Load more" now sits outside the list, so the list owns only list items. When it shows, the list gets a bottom border, so the separator above it looks the same as before.
Closes DEQ-533
No screenshots: the change only touches roles. The separator above "Load more" is unchanged, and the new
InboxPopover/WithLoadMorestory lets Pixel capture it.Grouping and decision log
aria-state-property-missinghas two tickets with different root causes. DEQ-144 (breadcrumbaria-current) is in a separate PR.role="menu"would require arrow-key roving focus, and a menu's owned elements can only be menu items, which rules out the "Load more" button. It would also wrap interactive action links in menu items. List semantics match what the popover is and give the requested "n of N" announcement.div role="list"instead of<ul>: this keeps the existing markup and styles. oxlint'sno-redundant-rolesrule would reject<ul role="list">, and Safari can drop list semantics from<ul>elements withlist-style: none.InboxItemstory wraps the item inrole="list"so axearia-required-parentpasses when the item renders on its own.frontend-deep-reviewflagged a structure-only Vitest (FE1/TS2) and a missing Load more story (TS1/TS7). I removed the test and added the story.frontend-reviewpassed.frontend-accessibility: axe onInboxPopover/Default,InboxPopover/WithLoadMore,InboxItem/Unread,InboxItem/Markdown, andNotificationsInbox/Defaultreports noaria-required-parent,aria-required-children, orlistviolations.aria-dialog-nameon the Radix popover content, and the per-item "mark as read" button only appears on hover or click focus, so keyboard users cannot reach it (WCAG 2.1.1). This needs its own ticket.[&>[role=listitem]]border selectors withdivide-y(the selectors already existed and were only renamed), and querying withscreeninstead ofwithin(body)(this matches the existing pattern in those files).🤖 Generated by Coder Agents on behalf of @jeremyruppel.