Commit 2eac903a authored by alexpott's avatar alexpott
Browse files

Issue #2303547 by mgifford: Fixed Consistency - screen-reader to screen reader.

parent db72be76
...@@ -1140,8 +1140,8 @@ function template_preprocess_status_messages(&$variables) { ...@@ -1140,8 +1140,8 @@ function template_preprocess_status_messages(&$variables) {
* level will default to 'h2'. Headings should be used on navigation menus * level will default to 'h2'. Headings should be used on navigation menus
* and any list of links that consistently appears on multiple pages. To * and any list of links that consistently appears on multiple pages. To
* make the heading invisible use the 'visually-hidden' CSS class. Do not * make the heading invisible use the 'visually-hidden' CSS class. Do not
* use 'display:none', which removes it from screen-readers and assistive * use 'display:none', which removes it from screen readers and assistive
* technology. Headings allow screen-reader and keyboard only users to * technology. Headings allow screen reader and keyboard only users to
* navigate to or skip the links. See * navigate to or skip the links. See
* http://juicystudio.com/article/screen-readers-display-none.php and * http://juicystudio.com/article/screen-readers-display-none.php and
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information. * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
Drupal.tableDrag['filter-order'].restripeTable(); Drupal.tableDrag['filter-order'].restripeTable();
}); });
// Attach summary for configurable filters (only for screen-readers). // Attach summary for configurable filters (only for screen readers).
if (filterSettingsTab) { if (filterSettingsTab) {
filterSettingsTab.details.drupalSetSummary(function (tabContext) { filterSettingsTab.details.drupalSetSummary(function (tabContext) {
return $checkbox.is(':checked') ? Drupal.t('Enabled') : Drupal.t('Disabled'); return $checkbox.is(':checked') ? Drupal.t('Enabled') : Drupal.t('Disabled');
......
...@@ -303,9 +303,9 @@ tr .ajax-progress-throbber .throbber { ...@@ -303,9 +303,9 @@ tr .ajax-progress-throbber .throbber {
} }
/** /**
* Hide elements visually, but keep them available for screen-readers. * Hide elements visually, but keep them available for screen readers.
* *
* Used for information required for screen-reader users to understand and use * Used for information required for screen reader users to understand and use
* the site where visual display is undesirable. Information provided in this * the site where visual display is undesirable. Information provided in this
* manner should be kept concise, to avoid unnecessary burden on the user. * manner should be kept concise, to avoid unnecessary burden on the user.
* "!important" is used to prevent unintentional overrides. * "!important" is used to prevent unintentional overrides.
...@@ -333,7 +333,7 @@ tr .ajax-progress-throbber .throbber { ...@@ -333,7 +333,7 @@ tr .ajax-progress-throbber .throbber {
} }
/** /**
* Hide visually and from screen-readers, but maintain layout. * Hide visually and from screen readers, but maintain layout.
*/ */
.invisible { .invisible {
visibility: hidden; visibility: hidden;
......
...@@ -86,7 +86,7 @@ label.option { ...@@ -86,7 +86,7 @@ label.option {
.form-required:after { .form-required:after {
color: #e00; color: #e00;
/* Use a Unicode symbol to prevent screen-readers from announcing the text. */ /* Use a Unicode symbol to prevent screen readers from announcing the text. */
content: " \204E "; content: " \204E ";
line-height: 1; line-height: 1;
vertical-align: super; vertical-align: super;
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
* Headings should be used on navigation menus and any list of links that * Headings should be used on navigation menus and any list of links that
* consistently appears on multiple pages. To make the heading invisible use * consistently appears on multiple pages. To make the heading invisible use
* the 'visually-hidden' CSS class. Do not use 'display:none', which * the 'visually-hidden' CSS class. Do not use 'display:none', which
* removes it from screen-readers and assistive technology. Headings allow * removes it from screen readers and assistive technology. Headings allow
* screen-reader and keyboard only users to navigate to or skip the links. * screen reader and keyboard only users to navigate to or skip the links.
* See http://juicystudio.com/article/screen-readers-display-none.php and * See http://juicystudio.com/article/screen-readers-display-none.php and
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information. * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
* *
......
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