Skip to content

Commit 5b9d6fe

Browse files
authored
docs: add comment for client side form validations (#4510)
1 parent 1ce2867 commit 5b9d6fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/components/src/styles/internal/_form-components.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ $input-valid-types:
227227
$validations: ":required";
228228

229229
@if ($selector == input) {
230+
/* We use all client side form-validation for input here */
230231
// https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation#using_built-in_form_validation
231232
$validations: ":required, [minlength], [maxlength], [pattern]";
232233

@@ -235,6 +236,7 @@ $input-valid-types:
235236
}
236237
/* stylelint-disable-next-line at-rule-empty-line-before */
237238
} @else if($selector == textarea) {
239+
/* We use all client side form-validation for textarea here */
238240
$validations: ":required, [minlength], [maxlength]";
239241
}
240242

0 commit comments

Comments
 (0)