Info icon
The outline circle with an i: the info treatment's icon. It is kept apart from the shared icon module because /ask uses no other icon, and importing that module brings all the homepage's glyphs with it.
In the not-heard note
The Ask page shows it when the conversation cannot be heard. The icon is the info icon role; the words carry the meaning.
The conversation is not available in this preview yet. Nothing you type here would be sent.
TSX
<p className={styles.notHeard} role="status">
<span className={styles.notHeardIcon}>
<InfoIcon />
</span>
<span>{askContent.notConfigured}</span>
</p>The glyph
One size, md: a 20px square that never shrinks, with the 1.5px line, in whatever colour the wrapper sets.
TSX
{/* the info icon role, as the note sets it */}
<span style={{ color: "var(--role-info-icon)" }}><InfoIcon /></span>
{/* no colour set: the text colour */}
<InfoIcon />Code
TSX
<span className={styles.notHeardIcon}>
<InfoIcon />
</span>From intake-conversation.tsx. The wrapper's class sets the colour: display flex, flex-shrink 0, color var(--role-info-icon) (ask.module.css).
Variants
| Prop | Value | How it looks |
|---|---|---|
| glyph size | md only | 20px square (size-5), and it never shrinks. The 1.5px line is drawn at every size. |
| colour | currentColor | Takes the caller's colour. In the not-heard note it is the info icon role: #4A5D72 light, #9FB3C8 dark. |
| note (caller) | not-heard | Info text (#00172E light, #FAFDFF dark) on the info surface (#EEF6FF light, #122A43 dark), with a 1px ring in the info ring (#4A5D72 light, #9FB3C8 dark) and a 12px radius. |
The info roles
Decision 0043 gives info four roles, like error, warning and success. The icon is muted, not a brand blue: a brand blue never means a state.
| Role | Light | Dark |
|---|---|---|
| --role-infoInfo text | Light ink#00172E 17.6:1 | Dark dark-text#FAFDFF 17.6:1 |
| --role-info-iconInfo icons | Light muted#4A5D72 6.6:1 | Dark dark-muted#9FB3C8 8.3:1 |
| --role-info-surfaceInfo notices | Light tint#EEF6FF info text 16.5:1 | Dark slate#122A43 info text 14.2:1 |
| --role-info-ringThe ring on an info notice | Light muted#4A5D72 6.6:1, not for text | Dark dark-muted#9FB3C8 8.3:1, not for text |
States
| State | How it looks |
|---|---|
| rest | Static glyph. It is decorative: the words beside it carry the meaning, so it has no hover or focus. |
| hover | not written |
| disabled | not written |
Props
Import from @repo/ui/info-icon.
| Prop | Type | Default | What it does |
|---|---|---|---|
| (none) | n/a | No props. It always draws IconCircleInfo at 20px (size md) with the 1.5px line, in currentColor. |
Use it well
Keep the words beside it. Colour never carries a state's meaning alone (decision 0043).
Set the colour on the wrapper, with the info icon role. The glyph draws in currentColor.
Import it from @repo/ui/info-icon, not @repo/ui/icons, so /ask carries no other glyph.
It writes out the scale's md itself, and a test in packages/ui holds it to that.