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

Commit 7a62934

Browse files
committed
docs(cb-a11y): Content - Form controls
1 parent 522ef92 commit 7a62934

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

+7-3
Original file line numberDiff line numberDiff line change
@@ -316,14 +316,18 @@ code-example(language="html" escape="html" format="linenums").
316316
already furnished with id's.
317317

318318
As alternative you can also use the `explicit labelling` syntax. For this syntax you are required to add an `id` to
319-
the `HTML` form element to connect the label.
319+
the `HTML` form element to connect the label up.
320320

321321
This is also the reason why `implicit labelling` could come in very useful with reusable Angular 2 components.
322322
Remember that an `id` should be unique on a page, and any component where `explicit labelling` is used, will need
323-
a way to add unique id's to the elements.
323+
a way to add unique id's to the elements, unless it is certain that the component will only be used once per page.
324324

325325
This time we will only look at adding an `explicit label` to an `INPUT`. The examples under the `implicit labelling`
326-
section can easily be adjusted once you know how this works.
326+
section can then easily be adjusted to use this pattern.
327+
328+
**NOTE:** In the example code we are generating `GUID's` for id's to ensure that they are unique. You can use your
329+
own method to do this, as long as every page id is unique.
330+
327331

328332

329333
.l-main-section

0 commit comments

Comments
 (0)