Skip to content
Design System
GitHub

Message actions

v0.64.0, changelogBeta

The actions under a model's answer (Copy, Regenerate, Good and Bad with a reason, a ‹ 2 / 3 › switcher), quiet until hovered or focused, always shown on touch and to the keyboard.

Roles

What a screen reader is told each part is, measured in the examples on the Overview tab.

  • button
  • group
  • radio
  • radiogroup
  • Follows the WAI-ARIA pattern Radio group.
  • Announces changes through a live region, so a screen reader reads an update without focus moving to it.

Keyboard

KeysAction
TabMove through the switcher's ‹ and ›, Copy, Regenerate, Good and Bad, then the reasons; focus shows the quiet buttons
Enter / SpaceRun the button; on Good or Bad, press or release it
← / →In the reasons, move between them (one Tab stop); `Enter` or `Space` picks one

Colour contrast

Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.