UI
Question box
The box at the bottom of every screen where questions are asked.
In use
Anatomy
- BoxA light card with 20px corners and the Dock shadow.
- FieldOutfit at 17px, with the placeholder in the muted colour.
- 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.
- 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.
VoiceWith voice on, a mic sits beside the send button. While Dugout listens, the line under the box says Listening, with three moving dots.
Dugout is 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.
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
| Token | What it sets |
|---|---|
--ds-card | The box's fill. |
--ds-shadow-dock | The shadow that floats it. |
--ds-radius-lg | The box's corners. |
--ds-radius-md | The send button's corners. |
--ds-brand | The send button's fill. |
--ds-focus | The ring round the box when it has focus. |
--ds-icon-lg | The mic's size. |
--ds-brand-soft | The mic's fill while listening. |