Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/accessibility#3: Add accessible label on Contact Edit form elements and helpicon #12373

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

monishdeb
Copy link
Member

Overview

The PR adds aria-label attribute to all those form elements which don't have accessible labels and also adds this attribute on helpicon links

Before

Form elements like Website, Email, IM, Phone etc. don't have accessible labels and thus when tested with WAVE tool, let's say Website field:
screen shot 2018-06-28 at 11 55 17 pm

After

Adds aria-label on form elements like Website, Email, IM, Phone etc.
screen shot 2018-06-28 at 11 53 26 pm

@civibot
Copy link

civibot bot commented Jun 28, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@@ -32,7 +32,8 @@
* Add a help link to a form label
*/
function addHelp(title, options) {
return title + ' <a href="#" onclick=\'CRM.help("' + title + '", ' + JSON.stringify(options) + '); return false;\' title="' + ts('%1 Help', {1: title}) + '" class="helpicon"></a>';
var title = ts('%1 Help', {1: title});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monishdeb just get rid of var here and that should fix the style issue.

@colemanw
Copy link
Member

This looks good to me.

@colemanw colemanw merged commit 6b66cd6 into civicrm:master Jul 10, 2018
@colemanw
Copy link
Member

@monishdeb I'm curious to know why aria-label was needed on the help icon link. Was it not sufficient to have a title?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants