Skip to the page

UI

Question box

The box at the bottom of every screen where questions are asked.

In use

It floats over the chat, which fades out behind it.

Anatomy

  1. BoxA light card with 20px corners and the Dock shadow.
  2. FieldOutfit at 17px, with the placeholder in the muted colour.
  3. Send buttonA 44px Dugout green square with 14px corners and an arrow, named Ask. With voice on and the box empty, it widens into the Live pill.
  4. MicTypes what's said into the box.

States

Question boxFocus draws a Dugout green ring round the box. While Dugout answers, the send button turns grey.
Rest
Focus
While Dugout answers
VoiceWith voice on, a mic sits beside the send button. While Dugout listens, the line under the box says Listening, with three moving dots.
Rest

Dugout is listening.

Listening
SaidWhen the visitor stops talking, the question waits in the box for them to send, and the Live pill turns back into the arrow.
Rest

When to use it

Use one question box, at the bottom of every screen where someone can ask.

When not to use it

Don’t use it to narrow an answer on screen; use the Filter.

Accessibility

The field is labelled “Ask Dugout about baseball”, and Enter sends the question. The send button is named Ask, and Asking while an answer is on its way.

Tokens

In code: QuestionBox in src/ds/components/Conversation

Tokens
TokenWhat it sets
--ds-cardThe box's fill.
--ds-shadow-dockThe shadow that floats it.
--ds-radius-lgThe box's corners.
--ds-radius-mdThe send button's corners.
--ds-brandThe send button's fill.
--ds-focusThe ring round the box when it has focus.
--ds-icon-lgThe mic's size.
--ds-brand-softThe mic's fill while listening.