Skip to content

Conversation

Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Sep 17, 2025

Purpose

Fix UX and accessibility violations in DocShareModal where QuickSearch auto-selected the first result on open, causing NVDA to immediately announce "John Doe impress@impress.world" despite focus being in the search input.

This violated UX principles (user consent, predictability) and WCAG

Proposal

  • Remove auto-selection useEffect that triggered premature NVDA announcements
  • Implement user interaction tracking, only navigate after user action
  • Fix ARIA modal structure - remove nested role="dialog", use aria-labelledby
  • Add proper combobox ARIA relationships (aria-controls, aria-expanded, role="listbox")
  • Control expansion state - only "expanded" after user interaction

@Ovgodd Ovgodd requested a review from AntoLC September 17, 2025 08:41
@Ovgodd Ovgodd self-assigned this Sep 17, 2025
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 2 times, most recently from 3970af0 to 9880d1d Compare September 17, 2025 08:43
@Ovgodd Ovgodd marked this pull request as ready for review September 17, 2025 08:43
Copy link

github-actions bot commented Sep 17, 2025

Size Change: +49 B (0%)

Total Size: 3.65 MB

Filename Size Change
apps/impress/out/_next/static/bd8c762d/_buildManifest.js 0 B -865 B (removed) 🏆
apps/impress/out/_next/static/143ac8d6/_buildManifest.js 865 B +865 B (new file) 🆕

compressed-size-action

@Ovgodd Ovgodd marked this pull request as draft September 17, 2025 09:08
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 4 times, most recently from 3256b4f to 28f34ce Compare September 17, 2025 13:21
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 4 times, most recently from 8edf1e2 to 03d3bc0 Compare September 22, 2025 06:21
@Ovgodd Ovgodd marked this pull request as ready for review September 22, 2025 06:22
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch from 03d3bc0 to 72b3b4b Compare September 22, 2025 06:22
@Ovgodd Ovgodd requested a review from AntoLC September 22, 2025 06:22
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch from 72b3b4b to da4ed5d Compare September 22, 2025 07:24
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we have to update this test, the development does not seem to touch really this part.
I can see it is still mocking the users request, it should not, it is not asserting anymore that the users are correctly displayed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree, that was a mistake !

@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 3 times, most recently from 51a37fd to dde32e0 Compare September 22, 2025 08:53
@Ovgodd Ovgodd requested a review from AntoLC September 22, 2025 08:54
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 3 times, most recently from 6861750 to d86027b Compare September 22, 2025 11:51
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch 2 times, most recently from ebe8134 to f420622 Compare September 22, 2025 12:10
fix NVDA focus and announcement issues in search modal combobox

Signed-off-by: Cyril <c.gromoff@gmail.com>
@Ovgodd Ovgodd force-pushed the fix/share-modal-nvda branch from f420622 to ee3b05c Compare September 22, 2025 12:53
@Ovgodd Ovgodd merged commit ee3b05c into main Sep 22, 2025
21 of 22 checks passed
@Ovgodd Ovgodd deleted the fix/share-modal-nvda branch September 22, 2025 13:31
@Ovgodd Ovgodd mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants