Skip to content

Hide idle composer keyboard hint from assistive tech - #475

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7225-hide-idle-composer-keyboard-hint-from-assistive-tech
Aug 30, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-7225-hide-idle-composer-keyboard-hint-from-assistive-tech

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-7225.

After the composer rail layout, “Enter to send” stays mounted and only opacity-fades when idle. Opacity-hidden text remains in the accessibility tree, so the shortcut can be announced while send is disabled.

This restores visibility: hidden on the idle hint and sets aria-hidden so it is announced only for a focused non-empty draft. The hint stays in the action rail so layout does not jump.

Test plan

  • bun test test/composer.test.tsx in packages/chat-ui (18 pass)
  • CI green

The hint stays mounted in the action rail when idle. Opacity-only hide
leaves it in the accessibility tree; these assertions require aria-hidden
to flip with the visible state.
Opacity-only hide left “Enter to send” in the accessibility tree while
send was disabled. Restore visibility:hidden and set aria-hidden so the
hint is announced only for a focused non-empty draft.
@TheGreatAxios
TheGreatAxios merged commit 918f368 into main Aug 30, 2026
5 checks passed
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