Skip to content

Commit 03ed0e7

Browse files
customer name fixed
1 parent a72d6c6 commit 03ed0e7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>Product Pick</h1>
1818
<div>
1919
<label for="customername">Customer name *: </label>
2020
<input type="text" id="customername" name="customername" required
21-
pattern="^[\p{Latin}\p{Ll}]$" minlength="2" maxlength="50"
21+
pattern="^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\s'-]+$" minlength="2" maxlength="50"
2222
placeholder="Customer name"/>
2323
</div>
2424

Form-Controls/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* body style */
2-
input:valid{
2+
input:valid{
33
border:2px solid yellow;
44
}
55
input:invalid:not(:placeholder-shown){
66
border:2px solid red;
77
}
88
body {
9-
background-color: lightwhite;
10-
max-width: 800px;
9+
background-color: lightwhite;
10+
max-width: 800px;
1111
display: flex;
1212
flex-direction: column;
1313
align-items: center;

0 commit comments

Comments
 (0)