ICONS
- Checkmark:
wpdui-icon wpdui-icon-check
- Asterisk:
wpdui-icon wpdui-icon-asterisk
FIELD: Text, Email, Website
Variation 1: When we have only Main Label
- Main container markup:
<div class="forminator-field--main">...</div>
- Main label markup:
<label class="forminator-label--main">Sample label</label>
- The required icon should be placed after
forminator-label--main
- If there's no placeholder, main label should act as it. For that the class forminator-no_placeholder should be added to parent div as this example:
<div class="forminator-field--main forminator-no_placeholder"></div>
Variation 2: When we have only Field label
- Main container markup:
<div class="forminator-field--label">...</div>
- Main label markup:
<label class="forminator-label--helper">Sample label</label>
- The required icon should be placed after
forminator-label--helper
. - If there's no placeholder, field label should act as it. For that the class forminator-no_placeholder should be added to parent div as this example:
<div class="forminator-field--label forminator-no_placeholder"></div>
Variation 3: When we have Main & Field labels
- The required icon should go in the main label container.
- If there's no placeholder, field label should act as it. For that the class forminator-no_placeholder should be added to parent div as this example:
<div class="forminator-field--label forminator-no_placeholder"></div>
Variation 4: When we have Main, Field and Placeholder
- Main container markup:
<div class="forminator-field--main">...</div>
- Main label markup:
<label class="forminator-label--main">Sample label</label>
- Field container markup:
<div class="forminator-field--label">...</div>
- Field label markup:
<label class="forminator-label--helper">Sample label</label>
- The required icon should be placed after
forminator-label--main
Variation 5: When we have Main and Placeholder
- Main container markup:
<div class="forminator-field--main">...</div>
- Main label markup:
<label class="forminator-label--main">Sample label</label>
- The required icon should be placed after
forminator-label--main
Variation 6: When we have Field and Placeholder
- Field container markup:
<div class="forminator-field--label">...</div>
- Field label markup:
<label class="forminator-label--helper">Sample label</label>
- The required icon should be placed after
forminator-label--main
Variation 7: When we have only Placeholder
- The required icon should be placed inside
<div class="forminator-field--main"></div>
. If the container doesn't exist, should be created. If there's only required icon inside the container, then the wholeforminator-field--main
should be removed.
FIELD: Phone
Variation 1: When we have only Main Label (with or without Placeholder)
- Main container markup:
<div class="forminator-field--main">...</div>
- Main label markup:
<label class="forminator-label--main">Sample label</label>
- The required icon should be placed after
forminator-label--main
- If there's no placeholder, nothing else should happen. Label remains intact.
Variation 2: When we have only Field label (with or without Placeholder)
- Main container markup:
<div class="forminator-field--label">...</div>
- Main label markup:
<label class="forminator-label--helper">Sample label</label>
- The required icon should be placed after
forminator-label--helper
. - If there's no placeholder, nothing else should happen. Label remains intact.
Variation 3: When we have Main & Field labels (with or without Placeholder)
- The required icon should go in the main label container.
- If there's no placeholder, nothing else should happen. Labels remain intact.
Variation 4: When we have Main, Field and Placeholder
- Main container markup:
<div class="forminator-field--main">...</div>
- Main label markup:
<label class="forminator-label--main">Sample label</label>
- Field container markup:
<div class="forminator-field--label">...</div>
- Field label markup:
<label class="forminator-label--helper">Sample label</label>
- The required icon should be placed after
forminator-label--main
Variation 5: When we have only Placeholder
- The required icon should be placed inside
<div class="forminator-field--main"></div>
. If the container doesn't exist, it should be created. If there's only required icon inside the container, then the wholeforminator-field--main
should be removed.