Skip to content

Commit ca58cce

Browse files
Michael StramelMichael Stramel
authored andcommitted
Added accessibility classes to default inputs
1 parent c3df1f4 commit ca58cce

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/directives/decorators/bootstrap/default.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="form-group" ng-class="{'has-error': hasError(), 'has-success': hasSuccess(), 'has-feedback': form.feedback !== false }">
2-
<label class="control-label" ng-show="showTitle()">{{form.title}}</label>
2+
<label class="control-label" ng-class="{'sr-only': showTitle()}">{{form.title}}</label>
33

44
<input ng-show="form.key"
55
type="{{form.type}}"
@@ -13,7 +13,8 @@
1313
schema-validate="form">
1414
<span ng-if="form.feedback !== false"
1515
class="form-control-feedback"
16-
ng-class="evalInScope(form.feedback) || {'glyphicon': true, 'glyphicon-ok': hasSuccess(), 'glyphicon-remove': hasError() }"></span>
16+
ng-class="evalInScope(form.feedback) || {'glyphicon': true, 'glyphicon-ok': hasSuccess(), 'glyphicon-remove': hasError() }"
17+
aria-hidden="true"></span>
1718
<div class="help-block"
1819
ng-show="(hasError() && errorMessage(schemaError())) || form.description"
1920
ng-bind-html="(hasError() && errorMessage(schemaError())) || form.description"></div>

src/directives/decorators/bootstrap/readonly.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="form-group">
2-
<label ng-show="showTitle()">{{form.title}}</label>
2+
<label ng-class="{'sr-only': showTitle()}">{{form.title}}</label>
33
<input ng-if="form.type !== 'textarea'" type="text" disabled class="form-control" value="{{$$value$$}}">
44
<textarea ng-if="form.type === 'textarea'" disabled class="form-control">{{$$value$$}}</textarea>
55
<div class="help-block" ng-show="form.description" ng-bind-html="form.description"></div>

src/directives/decorators/bootstrap/textarea.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="form-group has-feedback" ng-class="{'has-error': hasError(), 'has-success': hasSuccess()}">
2-
<label ng-show="showTitle()">{{form.title}}</label>
2+
<label ng-class="{'sr-only': showTitle()}">{{form.title}}</label>
33
<textarea class="form-control"
44
sf-changed="form"
55
placeholder="{{form.placeholder}}"

0 commit comments

Comments
 (0)