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

Testimonials

Testimonial section patterns for landing pages and marketing sites. Quote cards, avatar grids, and carousel layouts.

Overview

Testimonials are essential for building credibility on marketing pages. These patterns put each quote in a <figure>: the words go in a <blockquote> and the attribution in a <figcaption>, outside the quotation as the HTML spec recommends. Cards are <layout-card> elements in a <layout-grid>; no custom CSS is needed.

Key features:

  • Semantic HTML with figure, blockquote and figcaption
  • Responsive grids of layout-card with layout-grid
  • Avatar integration with user-avatar
  • Read-only star ratings with star-rating
  • carousel-wc component for featured testimonials
  • Accessible by default

Simple Quotes

The most straightforward testimonial pattern: quote cards with author attribution. Uses <layout-grid> for a responsive layout that adjusts columns to the available space. The header is an <hgroup> centred with data-layout="center" and data-layout-text.

With Avatars and Ratings

Enhanced testimonials featuring author avatars and star ratings. The user-avatar component displays profile images, and <star-rating value="5" readonly> renders the rating with an accessible "Rating: 5 out of 5" summary.

Carousel

A carousel of featured testimonials using the carousel-wc component. A length in item-width sizes each slide, and p.lead gives the quotes more weight. The component provides real prev/next buttons, clickable dot indicators, keyboard navigation, and full ARIA semantics.

Layout Configuration

Common data attributes for testimonial sections:

Element Attribute Values Description
data-layout="grid" data-layout-min CSS length (e.g., 300px) Minimum card width before wrapping.
data-layout="stack" data-layout-gap xs s m l xl 2xl Vertical spacing between elements.
data-layout="cluster" data-layout-gap xs s m l Gap between avatar and name.
data-layout="cluster" data-layout-align start center end stretch baseline Vertical alignment of items.
carousel-wc item-width full auto CSS length Width of each carousel slide.
carousel-wc gap xs s m l xl Gap between carousel slides.
user-avatar data-size xs sm md lg xl 2xl Avatar size.
star-rating value, readonly Number; boolean Display-only rating with a text summary for screen readers.

Usage Notes

  • Semantic markup: Use <blockquote> for the quote and keep the attribution in the figure's <figcaption>, outside the quotation. <cite> names a work, not a person.
  • Avatar alt text: Avatar images should have empty alt="" since the author name is provided in text. The image is decorative.
  • Quote marks: Include quotation marks in the text content rather than using CSS ::before pseudo-elements. This ensures quotes are read by screen readers.
  • Star ratings: <star-rating readonly> announces its value as text ("Rating: 5 out of 5"); set label to change the prefix.
  • Carousel UX: The carousel-wc component provides keyboard navigation (arrow keys, Home/End), prev/next buttons, clickable dot indicators, and full ARIA semantics. It also respects prefers-reduced-motion.
  • Performance: Use loading="lazy" on avatar images that are below the fold. For above-the-fold testimonials, use loading="eager".
  • Authenticity: Real testimonials with full names, titles, and company names are more credible. Consider linking to the author's profile or the company website.

Related

Layout Grid

Grid layout element documentation

User Avatar

Avatar component documentation

Star Rating

Rating component documentation

Carousel

Scroll carousel component documentation

Call to Action

CTA section patterns

↑