@@ -52,7 +52,7 @@ include ../_util-fns
52
52
53
53
The makers of the browsers have spent a lot of time thinking about the very same issue that has brought
54
54
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.
56
56
57
57
We would like to suggest the following rule of thumb when building your applications:
58
58
@@ -77,26 +77,26 @@ include ../_util-fns
77
77
But, we know this is not always possible, so this guide will also show you what you can do to make your own
78
78
components as accessible as possible.
79
79
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!
83
81
84
82
.l-main-section
85
83
:marked
86
84
## Important note on styling in this chapter
87
85
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
88
93
The `container`, `row`, `col-xs-12`, `checkbox`, `radio`, `form-group`, `form-control`, and `btn` classes
89
94
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 .
91
96
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.
93
98
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!
100
100
101
101
.l-main-section
102
102
<a id =" toc" ></a >
@@ -118,22 +118,25 @@ include ../_util-fns
118
118
:marked
119
119
## Accessible form control labels
120
120
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
122
122
label them. Imagine coming face-to-face with a customer details page on your favourite online store, only to
123
123
be faced with screen filled with unlabelled input fields!
124
124
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.
126
127
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.
129
130
130
131
For this reason it is not only important to visually mark any form component, or as they are sometimes called,
131
132
`form controls`, but to do so in a way that also exposes it to assistive technologies.
132
133
133
134
We will discuss a number of ways to do this.
134
135
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.
137
140
138
141
:marked
139
142
### Implicit labelling
0 commit comments