Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3cc9d89

Browse files
committed
docs(a11y-sweep): Apply baseline accessibility to the examples
1 parent 21d74d5 commit 3cc9d89

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

public/docs/_examples/toh-1/ts/app/app.component.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ export class Hero {
1313
template:`
1414
<h1>{{title}}</h1>
1515
<h2>{{hero.name}} details!</h2>
16-
<div><label>id: </label>{{hero.id}}</div>
16+
<dl>
17+
<dt>id:</dt>
18+
<dd>{{hero.id}}</dd>
19+
</dl>
1720
<div>
18-
<label>name: </label>
19-
<input [(ngModel)]="hero.name" placeholder="name">
21+
<label>name:
22+
<input [(ngModel)]="hero.name" placeholder="name">
23+
</label>
2024
</div>
2125
`
2226
})
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
body, input[text], button {
2+
color: #5E5E5E;
3+
font-family: Cambria, Georgia;
4+
}
5+
6+
dt {
7+
float: left;
8+
clear: left;
9+
}

public/docs/_examples/toh-1/ts/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en-US">
33
<head>
44
<title>Angular 2 Tour of Heroes</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<link rel="stylesheet" href="styles.css">
8+
<link rel="stylesheet" href="demo.css">
89

910
<!-- Polyfill(s) for older browsers -->
1011
<script src="node_modules/core-js/client/shim.min.js"></script>

0 commit comments

Comments
 (0)