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

Commit b8ede33

Browse files
committed
docs(cb-a11y): Content - Form controls
1 parent 8a0e68b commit b8ede33

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

public/docs/ts/latest/cookbook/a11y.jade

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,30 @@ code-example(language="html" escape="html" format="linenums").
283283
:marked
284284
#### Select lists
285285

286+
Your component template:
287+
288+
+makeExample('cb-a11y/ts/app/form-controls/a11y-select.component.html')
289+
290+
:marked
291+
Used as:
292+
293+
+makeExample('cb-a11y/ts/app/form-controls/a11y-form-controls.component.html','cb-a11y-form-controls-select-usage')
294+
295+
:marked
296+
Which is then rendered as:
297+
298+
code-example(language="html" escape="html" format="linenums").
299+
<a11y-select>
300+
<div class="form-group">
301+
<label>Why are you interested in a11y?
302+
<select class="form-control">
303+
<option value="0">Curiosity</option>
304+
<option value="1">Increased userbase</option>
305+
<option value="2">Legal reasons</option>
306+
</select>
307+
</label>
308+
</div>
309+
</a11y-select>
286310

287311
.l-main-section
288312
<a id="keyboard-shortcuts"></a>

0 commit comments

Comments
 (0)