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

Commit a7c97c1

Browse files
committed
docs(cb-a11y): Content - Form controls
1 parent 4510602 commit a7c97c1

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

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

+21-18
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ include ../_util-fns
5252

5353
The makers of the browsers have spent a lot of time thinking about the very same issue that has brought
5454
you to this page today and have provided you with a lot of functionality out-of-the-box when you make use of
55-
standard `HTML` elements in your component templates.
55+
standard `HTML` elements.
5656

5757
We would like to suggest the following rule of thumb when building your applications:
5858

@@ -77,26 +77,26 @@ include ../_util-fns
7777
But, we know this is not always possible, so this guide will also show you what you can do to make your own
7878
components as accessible as possible.
7979

80-
So without further ado, let us see how easy it is to get big accessibility gains in our applications!
81-
82-
80+
So without further ado, let us see how easy it is to get big `a11y` wins in our applications!
8381

8482
.l-main-section
8583
:marked
8684
## Important note on styling in this chapter
8785

86+
.callout.is-important
87+
header Angular Pages Do Not Require A Style Library
88+
:marked
89+
Angular makes no use of the `container`, `row`, `col-xs-12`, `checkbox`, `radio`, `form-group`, `form-control`,
90+
and `btn` classes or the styles of any external library. Angular apps can use any CSS library
91+
... or none at all.
92+
:marked
8893
The `container`, `row`, `col-xs-12`, `checkbox`, `radio`, `form-group`, `form-control`, and `btn` classes
8994
come from [Twitter Boostrap](http://getbootstrap.com/css/). This is a purely cosmetic addition to prettify
90-
the examples and to also show how in `a11y`, the content of our `HTML` is as important as the final presentation.
95+
the examples so that they are as visually appealing as they are accessible.
9196

92-
Just because something looks good, does not mean it is accessible. But here we strive to achieve both!
97+
But always remember, just because something looks good, it does not mean that it is accessible.
9398

94-
.callout.is-important
95-
header Angular Pages Do Not Require A Style Library
96-
:marked
97-
Angular makes no use of the `container`, `row`, `col-xs-12`, `checkbox`, `radio`, `form-group`, `form-control`,
98-
and `btn` classes or the styles of any external library. Angular apps can use any CSS library
99-
... or none at all.
99+
The good news is, here we strive to achieve both!
100100

101101
.l-main-section
102102
<a id="toc"></a>
@@ -118,22 +118,25 @@ include ../_util-fns
118118
:marked
119119
## Accessible form control labels
120120

121-
Whether using already existing `HTML` elements or creating your own rich custom form components, it is crucial to
121+
Whether you are using already existing `HTML` elements or creating your own rich custom form components, it is crucial to
122122
label them. Imagine coming face-to-face with a customer details page on your favourite online store, only to
123123
be faced with screen filled with unlabelled input fields!
124124

125-
Impossible right?
125+
A nightmare right? Users will leave so fast the bouncerate counter will be able to power a small town it will be
126+
spinning *THAT* fast.
126127

127-
We can solve this by simply adding a label for each field. But users of our website may not always be able to see
128-
or recognise these labels without assistance.
128+
We can avoid this from ever happening by simply adding a label for each field. Generaly this is not out problem,
129+
however the users of our website may not always be able to see or recognise these labels without assistance.
129130

130131
For this reason it is not only important to visually mark any form component, or as they are sometimes called,
131132
`form controls`, but to do so in a way that also exposes it to assistive technologies.
132133

133134
We will discuss a number of ways to do this.
134135

135-
**NOTE**: You will see `ng-content` make its appearance a lot in the examples. We are making use of `Content Projection`
136-
to load content into the templates of our components.
136+
.l-sub-section
137+
:marked
138+
You will see the `ng-content` tag making its appearance a lot in the examples. This is because we are making use
139+
of `Content Projection` to load content into the templates of our components.
137140

138141
:marked
139142
### Implicit labelling

0 commit comments

Comments
 (0)