Skip to content

feat: improve Ask AI suggestion buttons UX#187

Merged
charlypa merged 1 commit intomainfrom
x
Apr 2, 2026
Merged

feat: improve Ask AI suggestion buttons UX#187
charlypa merged 1 commit intomainfrom
x

Conversation

@charlypa
Copy link
Copy Markdown
Contributor

@charlypa charlypa commented Apr 2, 2026

  • Move inline styles to CSS classes using DocSearch design tokens
  • Add staggered fade-in animation with prefers-reduced-motion support
  • Add accessibility: role="group", aria-label, aria-live="polite", screen reader announcement, focus-visible outline
  • Limit to 4 suggestions max to reduce cognitive load (Hick's Law)
  • Add mobile responsive stacking with 44px WCAG touch targets
  • Fix follow-up messages by stripping tool-call parts from history
  • Extract and render follow-up suggestions from Agent Studio stream

Summary

Brief explanation of the proposed changes.

Basic example

Include a basic example, screenshots, or links.

Motivation

Why are we doing this? What use cases does it support? What is the expected outcome?

Checks

  • Read Create a Pull Request
  • Supports all screen sizes (if relevant)
  • Supports both light and dark mode (if relevant)
  • Passes npm run test

- Move inline styles to CSS classes using DocSearch design tokens
- Add staggered fade-in animation with prefers-reduced-motion support
- Add accessibility: role="group", aria-label, aria-live="polite",
  screen reader announcement, focus-visible outline
- Limit to 4 suggestions max to reduce cognitive load (Hick's Law)
- Add mobile responsive stacking with 44px WCAG touch targets
- Fix follow-up messages by stripping tool-call parts from history
- Extract and render follow-up suggestions from Agent Studio stream
@charlypa charlypa merged commit a7ed371 into main Apr 2, 2026
2 of 3 checks passed
@charlypa charlypa deleted the x branch April 2, 2026 14:11
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