-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
65 lines (62 loc) · 2.12 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>Key Focus Visible Demo</title>
<link rel="stylesheet" href="demo.css" />
<script defer="true" src="index.js"></script>
</head>
<body>
<h1>Key Focus Visible Demo</h1>
<p>What to check:</p>
<ul>
<li>Press tab key then you can see the focus ring on all controls.</li>
<ul>
<li>On Safari, you need to change the accessibility settings.</li>
</ul>
<li>Click or tap controls then you can see the focus ring only on the text inputs.</li>
</ul>
<p>To get beautiful CSS with more browser's compatibility, checkout our design system or make your own stylesheets.</p>
<form class="form">
<div class="form-group">
<input class="form-control" type="text" value="Sample" />
</div>
<div class="form-group">
<label for="radio1">
<input class="radio" id="radio1" type="radio" name="radio" value="1" />
Option 1
</label>
<label for="radio2">
<input class="radio" id="radio2" type="radio" name="radio" value="2" />
Option 2
</label>
</div>
<div class="form-group">
<label for="checkbox1">
<input class="checkbox" id="checkbox1" type="checkbox" name="checkbox" value="1" />
Checkbox 1
</label>
</div>
<div class="form-group">
<select class="form-control" >
<option>Select A</option>
<option>Select B</option>
<option>Select C</option>
<option>Select D</option>
</select>
</div>
<div class="form-group">
<textarea class="form-control" rows="4" cols="40"></textarea>
</div>
<div class="form-group">
<a href='./demo.html'>Text Link</a>
<a href='./demo.html'>Text Link2</a>
</div>
<div class="form-group">
<button class="button" type="submit">Submit</button>
<button class="button" type="reset">Reset</button>
</div>
</form>
</body>
</html>