There was an error while loading. Please reload this page.
1 parent a72d6c6 commit 03ed0e7Copy full SHA for 03ed0e7
2 files changed
Form-Controls/index.html
@@ -18,7 +18,7 @@ <h1>Product Pick</h1>
18
<div>
19
<label for="customername">Customer name *: </label>
20
<input type="text" id="customername" name="customername" required
21
- pattern="^[\p{Latin}\p{Ll}]$" minlength="2" maxlength="50"
+ pattern="^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\s'-]+$" minlength="2" maxlength="50"
22
placeholder="Customer name"/>
23
</div>
24
Form-Controls/style.css
@@ -1,13 +1,13 @@
1
/* body style */
2
- input:valid{
+input:valid{
3
border:2px solid yellow;
4
}
5
input:invalid:not(:placeholder-shown){
6
border:2px solid red;
7
8
body {
9
- background-color: lightwhite;
10
- max-width: 800px;
+ background-color: lightwhite;
+ max-width: 800px;
11
display: flex;
12
flex-direction: column;
13
align-items: center;
0 commit comments