diff options
| author | Dixsie Wolmers <dixsiew@gmail.com> | 2019-07-11 13:46:08 -0500 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2019-09-26 20:04:56 +0000 |
| commit | 28e9ed8bd98c41f4f6426b8959af5f4289c4b4f0 (patch) | |
| tree | 7f291af34621b9f3e5f4014eaf46c2211c28615b /app/access-control | |
| parent | afc8a799627b71bba716e207cee8185852a6d390 (diff) | |
| download | phosphor-webui-28e9ed8bd98c41f4f6426b8959af5f4289c4b4f0.tar.gz phosphor-webui-28e9ed8bd98c41f4f6426b8959af5f4289c4b4f0.zip | |
Improve LDAP accessibility
-Fixes accessibility issues for table sort buttons,
fieldset legend, checkboxes and radio buttons
-Fixes tabbing to checkboxes
-Stops tabbing to disabled sort buttons by adding ng-disabled
-Removes aria-hidden from modals
Tested: Verified no violations using DAP tool.
Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com>
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I9ad240d5ed151a362c0000fdab3ebf1f2997b226
Diffstat (limited to 'app/access-control')
| -rw-r--r-- | app/access-control/controllers/ldap-controller.html | 22 | ||||
| -rw-r--r-- | app/access-control/styles/ldap.scss | 6 |
2 files changed, 17 insertions, 11 deletions
diff --git a/app/access-control/controllers/ldap-controller.html b/app/access-control/controllers/ldap-controller.html index 294dbb3..cfa929f 100644 --- a/app/access-control/controllers/ldap-controller.html +++ b/app/access-control/controllers/ldap-controller.html @@ -13,11 +13,11 @@ </div> <div class="row column"> <label class="control-check ldap__control-check"> - <input type="checkbox" id="enable-ldap-checkbox" - ng-change="updateServiceEnabled(); ldap__configuration.$setUntouched()" - ng-model="ldapProperties.ServiceEnabled" /> + <input type="checkbox" aria-labelledby="ldap-auth-label" + ng-change="updateServiceEnabled(); ldap__configuration.$setUntouched()" + ng-model="ldapProperties.ServiceEnabled" /> <span class="control__indicator"></span> - <span class="control__label"> + <span id="ldap-auth-label" class="control__label"> <strong>Enable LDAP authentication</strong> <br> LDAP authentication must be enabled to modify role groups. </span> @@ -27,13 +27,15 @@ <form id="ldap__configuration" name="ldap__configuration" ng-class="{'submitted': submitted}" class="ldap__configuration" novalidate> <fieldset ng-disabled="!ldapProperties.ServiceEnabled"> + <legend class="screen-reader-offscreen">LDAP Settings</legend> <div class="ldap__configure-settings row column"> <div class="large-3 column ldap__ssl-column"> <label class="control-check" ng-class="{'disabled' : certificates.length < 1}"> - <input id="secure-ldap-ssl" type="checkbox" ng-model="ldapProperties.useSSL" - ng-checked="ldapProperties.useSSL" ng-disabled="certificates.length < 1" /> + <input id="secure-ldap-ssl" aria-labelledby="use-ssl" type="checkbox" + ng-model="ldapProperties.useSSL" ng-checked="ldapProperties.useSSL" + ng-disabled="certificates.length < 1" /> <span class="control__indicator"></span> - <span class="control__label">Secure LDAP using SSL</span> + <span class="control__label" id="use-ssl">Secure LDAP using SSL</span> </label> <div> <div class="ldap__certificate-info" ng-if="ldapProperties.ServiceEnabled"> @@ -53,14 +55,14 @@ <div class="column service-type-column"> <fieldset class="ldap__server-info-service-type"> <legend class="content-label">Service Type</legend> - <label class="control-radio control__radio__label" for="open-ldap">Open LDAP + <label class="control-radio control__radio__label">Open LDAP <input type="radio" name="service_enabled_type" id="open-ldap" value="ldap" ng-checked="ldapProperties.LDAPServiceEnabled" ng-change="ldapProperties.EnabledServiceUpdated = true" ng-model="ldapProperties.EnabledServiceType" required /> <span class="control__indicator control__indicator-on control__indicator-service-type"></span> </label> - <label class="control-radio control__radio__label" for="active-directory">Active directory + <label class="control-radio control__radio__label">Active directory <input type="radio" name="service_enabled_type" id="active-directory" ng-change="ldapProperties.EnabledServiceUpdated = true" value="ad" ng-checked="ldapProperties.ADServiceEnabled" ng-model="ldapProperties.EnabledServiceType" @@ -126,7 +128,7 @@ class="ldap__optional-field" /> </div> <div class="column ldap__configuration-buttons"> - <button type="button" class="btn btn-primary" ng-disabled="!ldap__configuration.$valid" + <button type="submit" class="btn btn-primary" ng-disabled="!ldap__configuration.$valid" ng-click="$parent.submitted=true; ldap__configuration.$valid && saveLdapSettings(); ldap__configuration.$setUntouched()">Save</button> <button type="button" class="btn btn-secondary" ng-click="loadLdap(); ldap__configuration.$setUntouched()">Reset</button> diff --git a/app/access-control/styles/ldap.scss b/app/access-control/styles/ldap.scss index a18ac70..3a5d930 100644 --- a/app/access-control/styles/ldap.scss +++ b/app/access-control/styles/ldap.scss @@ -136,7 +136,7 @@ .password-toggle.disabled { background: transparent; - color: $base-02--03; + color: $base-02--02; border: none; } @@ -156,6 +156,10 @@ color: $primary-light; font-weight: 700; padding: 0; + + .control-check { + color: $primary-light; + } } .table__row-header.disabled { |

