Skip to content

Commit

Permalink
Update packages/components/src/styles/_form-components.scss
Browse files Browse the repository at this point in the history
Co-authored-by: Maximilian Franzke <[email protected]>
  • Loading branch information
nmerget and mfranzke authored Apr 11, 2024
1 parent 72b081e commit 2b19a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/styles/_form-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $input-valid-types: "color", "date", "datetime-local", "email", "file", "hidden"

@if ($selector == input) {
// https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation#using_built-in_form_validation
$validations: ":required, [minlength], [maxlength], [pattern]";
$validations: $validations + ", [minlength], [maxlength], [pattern]";
@each $type in $input-valid-types {
$validations: $validations + ", [type=#{$type}]";
}
Expand Down

0 comments on commit 2b19a59

Please sign in to comment.