Commit 735ab933 authored by Kushal Pandya's avatar Kushal Pandya Committed by Alfredo Sumaran

Add `aria-label` for feature status accessibility

parent bcbd0325
...@@ -43,28 +43,34 @@ ...@@ -43,28 +43,34 @@
%h4 %h4
Features Features
%hr %hr
%p - sign_up = "Sign up"
Sign up %p{ "aria-label" => "#{sign_up}: status " + (signup_enabled? ? "on" : "off") }
= sign_up
%span.light.pull-right %span.light.pull-right
= boolean_to_icon signup_enabled? = boolean_to_icon signup_enabled?
%p - ldap = "LDAP"
LDAP %p{ "aria-label" => "#{ldap}: status " + (Gitlab.config.ldap.enabled ? "on" : "off") }
= ldap
%span.light.pull-right %span.light.pull-right
= boolean_to_icon Gitlab.config.ldap.enabled = boolean_to_icon Gitlab.config.ldap.enabled
%p - gravatar = "Gravatar"
Gravatar %p{ "aria-label" => "#{gravatar}: status " + (gravatar_enabled? ? "on" : "off") }
= gravatar
%span.light.pull-right %span.light.pull-right
= boolean_to_icon gravatar_enabled? = boolean_to_icon gravatar_enabled?
%p - omniauth = "OmniAuth"
OmniAuth %p{ "aria-label" => "#{omniauth}: status " + (Gitlab.config.omniauth.enabled ? "on" : "off") }
= omniauth
%span.light.pull-right %span.light.pull-right
= boolean_to_icon Gitlab.config.omniauth.enabled = boolean_to_icon Gitlab.config.omniauth.enabled
%p - reply_email = "Reply by email"
Reply by email %p{ "aria-label" => "#{reply_email}: status " + (Gitlab::IncomingEmail.enabled? ? "on" : "off") }
= reply_email
%span.light.pull-right %span.light.pull-right
= boolean_to_icon Gitlab::IncomingEmail.enabled? = boolean_to_icon Gitlab::IncomingEmail.enabled?
%p - container_reg = "Container Registry"
Container Registry %p{ "aria-label" => "#{container_reg}: status " + (Gitlab.config.registry.enabled ? "on" : "off") }
= container_reg
%span.light.pull-right %span.light.pull-right
= boolean_to_icon Gitlab.config.registry.enabled = boolean_to_icon Gitlab.config.registry.enabled
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
%th Last edit %th Last edit
- @services.sort_by(&:title).each do |service| - @services.sort_by(&:title).each do |service|
%tr %tr
%td %td{ "aria-label" => "#{service.title}: status " + (service.activated? ? "on" : "off") }
= boolean_to_icon service.activated? = boolean_to_icon service.activated?
%td %td
= link_to edit_namespace_project_service_path(@project.namespace, @project, service.to_param) do = link_to edit_namespace_project_service_path(@project.namespace, @project, service.to_param) do
......
---
title: Add `aria-label` for feature status accessibility
merge_request: 9830
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment