Required-fields keys describe the required-field indicator symbol.
Use to describe the required-field indicator symbol.
<form class="mds-form" method="post" action="form/processor">
<span class="mds-form__required-fields-key">Required fields</span>
<div class="mds-form__field-group">
</div>
</form>
Sizing affects text size. The default size is medium, and you can use a modifier class to make a required fields key smaller (mds-form__required-fields-key--small
) or larger (mds-form__required-fields-key--large
).
<span class="mds-form__required-fields-key mds-form__required-fields-key--small">Required fields</span>
Class |
Applies to |
Outcome |
---|---|---|
|
|
Applies small styles to the required fields key text. |
|
|
Applies large styles to the required fields key text. |