Skip to content

Component: Callout styles - #3357

Merged
enf0rc3 merged 1 commit into
mainfrom
wl/callout-design
Aug 13, 2026
Merged

Component: Callout styles#3357
enf0rc3 merged 1 commit into
mainfrom
wl/callout-design

Conversation

@enf0rc3

@enf0rc3 enf0rc3 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Implements the callout from the Figma design.

One thing worth checking against your expectation: the design has no blue line down the left edge. That rule is what the callouts have today; Figma replaces it with a 24px status icon in the panel's own color, a 6px radius, and no border. That is what this PR builds.

What changed

Before After
Left edge 3px solid rule none
Radius 8px, square on the left 6px all round
Padding 24px 16px
Icon none 24px, per state, in colorCalloutIcon*
Body text 16px/24px in the state color 14px/20px in colorCalloutTextBody
Gap between blocks 16px 12px
Links octo-blue text primary, underlined

How

The panel is a two-column grid. The icon is a ::before mask in column one, everything markdown emits goes in column two. :::div{.hint} and friends are untouched, so all 1409 callouts in the docs pick this up with no authoring change.

Markdown gives us no title element, so bold text inside a callout takes the per-state title color — about a fifth of callouts open with a bold lead-in that plays that part.

Four icons added under src/assets/icons/, traced from @octopusdeploy/design-system-icons (the same source as the existing check/copy/chevron assets): info-circle, check-circle, exclamation-triangle, exclamation-circle.

.question is left alone — it is the FAQ block, not a callout.

Verified with astro build (2674 pages, clean) and by reading the compiled CSS. No live check, per your CSS preference — the preview is the place to eyeball it.

Results

image

Lightmode

Before:
image

Light Mode:
image

Dark Mode:

Before:
image

After:
image

🤖 Generated with Claude Code

Callouts were a tinted panel with a 3px rule down the left edge and a
square-ish 8px radius. The Figma callout drops the rule, uses a 6px
radius, and leads with a 24px status icon in the panel's own color.

The panel is now a two-column grid: the icon sits in column one as a
::before mask, everything the markdown emits goes in column two. That
keeps `:::div{.hint}` working untouched across all 1409 callouts in the
docs, so no markup or authoring change is needed.

Body text drops to 14px/20px on colorCalloutTextBody, blocks inside a
callout sit 12px apart, and links take text primary with an underline,
all per the design. Bold text takes the per-state title color: markdown
gives us no title element, and roughly a fifth of callouts open with a
bold lead-in that plays that part.

The four icons come from @octopusdeploy/design-system-icons, the same
source as the existing check/copy/chevron assets, so the glyphs match
what Figma composed the component from. The border-color-* callout
variables go with the rule that used them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3357.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@enf0rc3 enf0rc3 changed the title Give callouts the icon-and-panel design Component: Callout designs Aug 13, 2026
@enf0rc3 enf0rc3 changed the title Component: Callout designs Component: Callout styles Aug 13, 2026
@enf0rc3
enf0rc3 marked this pull request as ready for review August 13, 2026 22:01

@ellen-octopus ellen-octopus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you @enf0rc3 🤩

@borland borland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I like the new style

@enf0rc3
enf0rc3 merged commit 957fee3 into main Aug 13, 2026
7 checks passed
@enf0rc3
enf0rc3 deleted the wl/callout-design branch August 13, 2026 22:56
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.

4 participants