Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

aside

Content tangentially related to the surrounding content. Used for sidebars, pull quotes, and supplementary information boxes.

Usage

Use the <aside> element for:

  • Sidebar navigation or supplementary content
  • Pull quotes that highlight key text from an article
  • Related links or "See also" sections
  • Advertising or promotional content
  • Glossary definitions or explanatory boxes

Content in an aside should be related to the surrounding content but not essential to understanding it. The page should make sense if the aside is removed.

For alert-style notifications (warnings, tips, success messages, errors), use <status-message> instead.

Examples

Default

Basic aside without additional styling.

.sidebar

Panel style with background for sidebar layouts.

.note

Subtle note style for minor supplementary information.

.float

Floating aside for pull quotes that flow with text. It floats to the inline end at 40% of the container's inline size. Below 40rem it un-floats and spans the full width, so the quote never gets too narrow to read.

Content after a floated aside wraps around it. If a following block (a heading, a figure, a new section) must start below the quote, give it clear: both.

.sidenote

Margin annotation that floats alongside text on wide viewports. On narrow viewports, collapses to a bordered inline block. Requires the parent container to have margin space (e.g., inside <layout-text>).

Place the aside before the paragraph it annotates. A float starts at its own position in the flow, so putting it first lines the note up with the top of that paragraph.

Variants

Class Description
.sidebar Raised background panel style for sidebar content
.note Subtle, compact note with muted text for de-emphasized content
.float Pull quote: float: inline-end with inline-size: 40%; un-floats to full width below 40rem
.sidenote Margin annotation (22ch) that floats alongside text; collapses to bordered block on narrow viewports

Accessibility

  • An aside is a complementary landmark only when it is scoped to <body> or <main>, or when it has an accessible name. Inside <article>, <section>, <nav> or another <aside>, an unnamed aside is exposed as a generic element and does not appear in landmark navigation.
  • When you want the aside to be a landmark (for example a page sidebar), name it with aria-labelledby pointing at its heading, or with aria-label. Give each landmark aside a distinct name.
  • Small inline asides such as pull quotes, notes and sidenotes need not be landmarks: inside an <article> or <section> they can stay unnamed. At <body> or <main> level they are landmarks, so give each one a meaningful, distinct name (for example aria-label="Sidenote: HMS Beagle") rather than a generic one.
  • Include a heading to label longer asides
  • Keep aside content concise and focused on a single topic

Related

  • <article> - Aside often appears within or alongside articles
  • <section> - For thematic grouping (aside is for tangential content)
  • <nav> - Often placed within sidebar asides
  • <main> - Use main.with-sidebar for layouts with aside
↑