Skip to content

Fieldset Module

The Fieldset module provides consistent styling for <fieldset> and <legend> elements, including padding, border, radius, and legend font weight.

Example Fieldset
Disabled Fieldset

Signature:

scss
@mixin use-fieldset();

Example:

scss
@include termeh.use-fieldset();
Dependencies

Fieldset module uses the following Termeh global var():

ComponentTypeUsageDefault
baseseparatorColorFallback border colornull
radiusnormalNumberDefault fieldset border radiusnull
gapmacroNumberDefault inner padding and bottom margin for fieldset1.6em
inputlegendStringLegend element font weightnormal
inputborderColorFieldset border colorFALLBACK

Modifiers

  • .is-disabled / :disabled → disables all controls within the fieldset