You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(modal): 508 support in modal
508 and screen-reader support in modal.
* fix(eslint): Modal eslint errors
Fix the eslint erros with modal.js.
* fix(modal): fix skipped tests
Remove the force flag from the modal tests.
* fix(modal): aria-hidden on body without backdrop
Only apply the aria-hidden to the body element when the backdrop option
is specified.
For modal dialogs to be 508 and screen reader compliant please use the following examples. The <code>backdrop</code> must be set to <em>static</em> and
43
+
<code>keyboard</code> must be set to a truthy value. Please be aware that the directive use-case handles returning focus
44
+
to the item which opens the modal dialog. In scenarios where the <code>$modal</code> service is used it will be up to
45
+
the implementation to return focus to the element which initiated the action to open the dialog.
<p>Backdrop animation being powered by <code>ngAnimate</code>, it requires custom CSS.</p>
@@ -87,8 +103,9 @@ <h4>The module also exposes a <code>$modal</code>service</h4>
87
103
88
104
89
105
<h3>Options</h3>
90
-
<p>Options can be passed via data-attributes on the directive or as an object hash to configure the service. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
91
-
<p>For directives, you can naturally inherit the contextual <code>$scope</code> or leverage a custom one with an <ahref="http://docs.angularjs.org/guide/expression">AngularJS expression</a> to evaluate as an object directly on the <code>bs-modal</code> attribute</p>
106
+
<p>Options can be passed via data-attributes on the directive or as an object hash to configure the service. For data attributes,
107
+
append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
108
+
<p>For directives, you can naturally inherit the contextual <code>$scope</code> or leverage a custom one with an <ahref="http://docs.angularjs.org/guide/expression">AngularJS expression</a> to evaluate as an object directly on the <code>bs-modal</code> attribute</p>
92
109
<divclass="table-responsive">
93
110
<tableclass="table table-bordered table-striped">
94
111
<thead>
@@ -141,7 +158,8 @@ <h3>Options</h3>
141
158
<td>boolean or the string <code>'static'</code>
142
159
</td>
143
160
<td>true</td>
144
-
<td>Includes a modal-backdrop element. Alternatively, specify <code>static</code>for a backdrop which doesn't close the modal on click.</td>
161
+
<td>Includes a modal-backdrop element. Alternatively, specify <code>static</code>for a backdrop which doesn't close
162
+
the modal on click.</td>
145
163
</tr>
146
164
<tr>
147
165
<td>keyboard</td>
@@ -160,15 +178,18 @@ <h3>Options</h3>
160
178
<td>string | false</td>
161
179
<td>false</td>
162
180
<td>
163
-
<p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
181
+
<p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly
182
+
useful in that it allows you to position the popover in the flow of the document near the triggering element
183
+
- which will prevent the popover from floating away from the triggering element during a window resize.</p>
164
184
</td>
165
185
</tr>
166
186
<tr>
167
187
<td>controller</td>
168
188
<td>string|function</td>
169
189
<td>false</td>
170
190
<td>
171
-
<p>Controller fn that should be associated with newly created scope or the name of a registered controller if passed as a string.</p>
191
+
<p>Controller fn that should be associated with newly created scope or the name of a registered controller if passed
192
+
as a string.</p>
172
193
</td>
173
194
</tr>
174
195
<tr>
@@ -184,15 +205,17 @@ <h3>Options</h3>
184
205
<td>object</td>
185
206
<td>false</td>
186
207
<td>
187
-
<p>Object containing dependencies that will be injected into the controller's constructor when all the dependencies have resolved. The controller won't load if the promise is rejected.</p>
208
+
<p>Object containing dependencies that will be injected into the controller's constructor when all the dependencies
209
+
have resolved. The controller won't load if the promise is rejected.</p>
188
210
</td>
189
211
</tr>
190
212
<tr>
191
213
<td>locals</td>
192
214
<td>object</td>
193
215
<td>false</td>
194
216
<td>
195
-
<p>Object containing dependencies that will be injected into the controller's constructor. Similar to resolve but expects literal values instead of promises.</p>
217
+
<p>Object containing dependencies that will be injected into the controller's constructor. Similar to resolve but
218
+
expects literal values instead of promises.</p>
196
219
</td>
197
220
</tr>
198
221
<tr>
@@ -209,23 +232,26 @@ <h3>Options</h3>
209
232
<td>'modal/modal.tpl.html'</td>
210
233
<td>
211
234
<p>If provided, overrides the default template, can be either a remote URL or a cached template id.</p>
212
-
<p>It should be a <code>div.modal</code> element following Bootstrap styles conventions (<ahref="//github.com/mgcrea/angular-strap/blob/master/src/modal/modal.tpl.html" target="_blank">like this</a>).</p>
235
+
<p>It should be a <code>div.modal</code> element following Bootstrap styles conventions (<ahref="//github.com/mgcrea/angular-strap/blob/master/src/modal/modal.tpl.html"
236
+
target="_blank">like this</a>).</p>
213
237
</td>
214
238
</tr>
215
239
<tr>
216
240
<td>contentTemplate</td>
217
241
<td>path</td>
218
242
<td>false</td>
219
243
<td>
220
-
<p>If provided, fetches the partial and includes it as the inner content, can be either a remote URL or a cached template id.</p>
244
+
<p>If provided, fetches the partial and includes it as the inner content, can be either a remote URL or a cached
245
+
template id.</p>
221
246
</td>
222
247
</tr>
223
248
<tr>
224
249
<td>prefixEvent</td>
225
250
<td>string</td>
226
251
<td>'modal'</td>
227
252
<td>
228
-
<p>If provided, prefixes the events '.hide.before' '.hide' '.show.before' and '.show' with the passed in value. With the default value these events are 'modal.hide.before' 'modal.hide' 'modal.show.before' and 'modal.show'</p>
253
+
<p>If provided, prefixes the events '.hide.before' '.hide' '.show.before' and '.show' with the passed in value.
254
+
With the default value these events are 'modal.hide.before' 'modal.hide' 'modal.show.before' and 'modal.show'</p>
0 commit comments