Welcome to Vanilla Breeze
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
Provides a caption for a fieldset element. The legend is announced by screen readers as the group's label, making it essential for accessibility.
Important: The legend must be the first child of a fieldset for proper rendering.
Vanilla Breeze sets font-weight: 600 and padding-inline: var(--size-xs) on legend. In a bordered fieldset, the legend visually breaks the top border. In a fieldset.minimal, the legend loses its inline padding and gains a bottom margin, acting as a section heading at font-size: var(--font-size-md).
A legend provides the accessible name for its fieldset group.
<fieldset> <legend>Personal Information</legend> <!-- form fields --></fieldset>
In a standard fieldset with a visible border, the legend appears inset in the top border.
In a fieldset.minimal, the border is removed and the legend appears as a section heading with increased font size and a bottom margin.
<fieldset class="minimal"> <legend>Preferences</legend> <label> <input type="checkbox" name="prefs" value="dark" /> Dark mode </label> <label> <input type="checkbox" name="prefs" value="reduce" /> Reduce motion </label></fieldset>
Radio buttons should always be in a fieldset with a legend. Screen readers announce the legend before each option.
When navigating radio buttons, screen readers announce:
Legends can contain simple inline content but should remain concise.
<fieldset> <legend><strong>Required:</strong> Contact Details</legend> <!-- form fields --></fieldset>
When nesting fieldsets, each needs its own legend for proper hierarchy. A common pattern is a bordered outer fieldset with minimal inner fieldsets.
<fieldset> <legend>Shipping Information</legend> <fieldset class="minimal"> <legend>Address</legend> <!-- address fields --> </fieldset> <fieldset class="minimal"> <legend>Delivery Options</legend> <!-- radio buttons --> </fieldset></fieldset>
legend { font-weight: 600; padding-inline: var(--size-xs);} /* In a minimal fieldset, legend acts as a section heading */fieldset.minimal > legend { padding: 0; margin-block-end: var(--size-s); font-size: var(--font-size-md);}