diff --git a/core/includes/form.inc b/core/includes/form.inc index c94bc62..fa5d8d8 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -3786,7 +3786,7 @@ function theme_vertical_tabs($variables) { // Add required JavaScript and Stylesheet. drupal_add_library('system', 'drupal.vertical-tabs'); - $output = '

' . t('Vertical Tabs') . '

'; + $output = '

' . t('Vertical Tabs') . '

'; $output .= '
' . $element['#children'] . '
'; return $output; } @@ -4479,7 +4479,7 @@ function theme_form_element_label($variables) { } // Show label only to screen readers to avoid disruption in visual flows. elseif ($element['#title_display'] == 'invisible') { - $attributes['class'] = 'element-invisible'; + $attributes['class'] = 'visuallyhidden'; } if (!empty($element['#id'])) { diff --git a/core/includes/menu.inc b/core/includes/menu.inc index 581a6ce..ee0344b 100644 --- a/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -1646,7 +1646,7 @@ function theme_menu_local_task($variables) { if (!empty($variables['element']['#active'])) { // Add text to indicate active tab for non-visual users. - $active = '' . t('(active tab)') . ''; + $active = '' . t('(active tab)') . ''; // If the link does not contain HTML already, check_plain() it now. // After we set 'html'=TRUE the link will not be sanitized by l(). @@ -2247,13 +2247,13 @@ function theme_menu_local_tasks(&$variables) { $output = ''; if (!empty($variables['primary'])) { - $variables['primary']['#prefix'] = '

' . t('Primary tabs') . '

'; + $variables['primary']['#prefix'] = '

' . t('Primary tabs') . '

'; $variables['primary']['#prefix'] .= ''; $output .= drupal_render($variables['primary']); } if (!empty($variables['secondary'])) { - $variables['secondary']['#prefix'] = '

' . t('Secondary tabs') . '

'; + $variables['secondary']['#prefix'] = '

' . t('Secondary tabs') . '

'; $variables['secondary']['#prefix'] .= ''; $output .= drupal_render($variables['secondary']); diff --git a/core/includes/pager.inc b/core/includes/pager.inc index 40d9c01..692382b 100644 --- a/core/includes/pager.inc +++ b/core/includes/pager.inc @@ -259,7 +259,7 @@ function theme_pager($variables) { 'data' => $li_last, ); } - return '

' . t('Pages') . '

' . theme('item_list', array( + return '

' . t('Pages') . '

' . theme('item_list', array( 'items' => $items, 'attributes' => array('class' => array('pager')), )); diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 34e1ee5..6086662 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1511,7 +1511,7 @@ function theme_status_messages($variables) { foreach (drupal_get_messages($display) as $type => $messages) { $output .= "
\n"; if (!empty($status_heading[$type])) { - $output .= '

' . $status_heading[$type] . "

\n"; + $output .= '

' . $status_heading[$type] . "

\n"; } if (count($messages) > 1) { $output .= "
diff --git a/core/modules/forum/forum-list.tpl.php b/core/modules/forum/forum-list.tpl.php index 01c74a3..c17d07f 100644 --- a/core/modules/forum/forum-list.tpl.php +++ b/core/modules/forum/forum-list.tpl.php @@ -52,7 +52,7 @@ */ ?> ', $forum->depth); ?>
- icon_title; ?> + icon_title; ?>
name; ?>
description): ?> diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index ca9bf7e..b62e553 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -1154,7 +1154,7 @@ function template_preprocess_forum_list(&$variables) { if ($user->uid) { $variables['forums'][$id]->new_topics = _forum_topics_unread($forum->tid, $user->uid); if ($variables['forums'][$id]->new_topics) { - $variables['forums'][$id]->new_text = format_plural($variables['forums'][$id]->new_topics, '1 new post in forum %title', '@count new posts in forum %title', array('%title' => $variables['forums'][$id]->name)); + $variables['forums'][$id]->new_text = format_plural($variables['forums'][$id]->new_topics, '1 new post in forum %title', '@count new posts in forum %title', array('%title' => $variables['forums'][$id]->name)); $variables['forums'][$id]->new_url = url("forum/$forum->tid", array('fragment' => 'new')); $variables['forums'][$id]->icon_class = 'new'; $variables['forums'][$id]->icon_title = t('New posts'); @@ -1218,7 +1218,7 @@ function template_preprocess_forum_topic_list(&$variables) { $variables['topics'][$id]->new_text = ''; $variables['topics'][$id]->new_url = ''; if ($topic->new_replies) { - $variables['topics'][$id]->new_text = format_plural($topic->new_replies, '1 new post in topic %title', '@count new posts in topic %title', array('%title' => $original_title)); + $variables['topics'][$id]->new_text = format_plural($topic->new_replies, '1 new post in topic %title', '@count new posts in topic %title', array('%title' => $original_title)); $variables['topics'][$id]->new_url = url("node/$topic->nid", array('query' => comment_new_page_count($topic->comment_count, $topic->new_replies, $topic), 'fragment' => 'new')); } diff --git a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php index 9fa1061..130412c 100644 --- a/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/PageEditTest.php @@ -52,7 +52,7 @@ class PageEditTest extends NodeTestBase { $this->assertEqual($edit_url, $actual_url, t('On edit page.')); // Check that the title and body fields are displayed with the correct values. - $active = '' . t('(active tab)') . ''; + $active = '' . t('(active tab)') . ''; $link_text = t('!local-task-title!active', array('!local-task-title' => t('Edit'), '!active' => $active)); $this->assertText(strip_tags($link_text), 0, t('Edit tab found and marked active.')); $this->assertFieldByName($title_key, $edit[$title_key], t('Title field displayed.')); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 49d20a7..4224058 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -1271,7 +1271,7 @@ function node_build_content(Node $node, $view_mode = 'full', $langcode = NULL) { if ($view_mode == 'teaser') { $node_title_stripped = strip_tags($node->title); $links['node-readmore'] = array( - 'title' => t('Read more about @title', array('@title' => $node_title_stripped)), + 'title' => t('Read more about @title', array('@title' => $node_title_stripped)), 'href' => 'node/' . $node->nid, 'html' => TRUE, 'attributes' => array('rel' => 'tag', 'title' => $node_title_stripped), diff --git a/core/modules/overlay/overlay-child.js b/core/modules/overlay/overlay-child.js index 29a9790..ddc2c07 100644 --- a/core/modules/overlay/overlay-child.js +++ b/core/modules/overlay/overlay-child.js @@ -64,11 +64,11 @@ Drupal.behaviors.overlayChild = { $(context).find('#overlay-disable-message') .focusin(function () { $(this).addClass('overlay-disable-message-focused') - .find('a.element-focusable').removeClass('element-invisible'); + .find('a.focusable').removeClass('visuallyhidden'); }) .focusout(function () { $(this).removeClass('overlay-disable-message-focused') - .find('a.element-focusable').addClass('element-invisible'); + .find('a.focusable').addClass('visuallyhidden'); }); } }; @@ -152,7 +152,7 @@ Drupal.overlayChild.behaviors.tabs = function (context, settings) { $('#overlay-tabs > li > a').bind('click.drupal-overlay', function () { var active_tab = Drupal.t('(active tab)'); - $tabsLinks.parent().siblings().removeClass('active').find('element-invisible:contains(' + active_tab + ')').appendTo(this); + $tabsLinks.parent().siblings().removeClass('active').find('.visuallyhidden:contains(' + active_tab + ')').appendTo(this); $(this).parent().addClass('active'); }); }; diff --git a/core/modules/overlay/overlay-parent.css b/core/modules/overlay/overlay-parent.css index dad6d55..d829a59 100644 --- a/core/modules/overlay/overlay-parent.css +++ b/core/modules/overlay/overlay-parent.css @@ -38,7 +38,7 @@ html.overlay-open .displace-bottom { /** * Within the overlay parent, the message about disabling the overlay is for * screen-reader users only. It is always kept invisible with the - * element-invisible class, and removed from the tab order. Overlay-child.css + * visuallyhidden class, and removed from the tab order. Overlay-child.css * contains styling for the same message appearing within the overlay, and * intended for sighted users. */ diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js index 6537cb6..a0b9273 100644 --- a/core/modules/overlay/overlay-parent.js +++ b/core/modules/overlay/overlay-parent.js @@ -326,7 +326,7 @@ Drupal.overlay.loadChild = function (event) { Drupal.overlay.setFocusBefore = function ($element, document) { // Create an anchor inside the placeholder document. var placeholder = document.createElement('a'); - var $placeholder = $(placeholder).addClass('element-invisible').attr('href', '#'); + var $placeholder = $(placeholder).addClass('visuallyhidden').attr('href', '#'); // Put the placeholder where it belongs, and set the document focus to it. $placeholder.insertBefore($element); $placeholder.focus(); diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index 7fb7e0b..56b5f7b 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -420,9 +420,9 @@ function theme_overlay_disable_message($variables) { // screen-reader users, this message appears in both the parent and child // documents, but only the one in the child document is part of the tab order. foreach (array('profile_link', 'dismiss_message_link') as $key) { - $element[$key]['#options']['attributes']['class'][] = 'element-invisible'; + $element[$key]['#options']['attributes']['class'][] = 'visuallyhidden'; if (overlay_get_mode() == 'child') { - $element[$key]['#options']['attributes']['class'][] = 'element-focusable'; + $element[$key]['#options']['attributes']['class'][] = 'focusable'; } } @@ -431,7 +431,7 @@ function theme_overlay_disable_message($variables) { // Add a heading for screen-reader users. The heading doesn't need to be seen // by sighted users. - $output = '

' . t('Options for the administrative overlay') . '

' . $output; + $output = '

' . t('Options for the administrative overlay') . '

' . $output; // Wrap in a container for styling. $output = '
' . $output . '
'; diff --git a/core/modules/overlay/overlay.tpl.php b/core/modules/overlay/overlay.tpl.php index 54b10af..e86f46b 100644 --- a/core/modules/overlay/overlay.tpl.php +++ b/core/modules/overlay/overlay.tpl.php @@ -27,9 +27,9 @@

>

- +
-

+

> diff --git a/core/modules/system/html.tpl.php b/core/modules/system/html.tpl.php index 960eefb..f514498 100644 --- a/core/modules/system/html.tpl.php +++ b/core/modules/system/html.tpl.php @@ -49,7 +49,7 @@ > diff --git a/core/modules/system/lib/Drupal/system/Tests/Form/ElementsLabelsTest.php b/core/modules/system/lib/Drupal/system/Tests/Form/ElementsLabelsTest.php index 982f182..5451e0c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Form/ElementsLabelsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Form/ElementsLabelsTest.php @@ -62,8 +62,8 @@ class ElementsLabelsTest extends WebTestBase { $elements = $this->xpath('//input[@id="edit-form-textfield-test-no-title-required"]/preceding-sibling::label[@for="edit-form-textfield-test-no-title-required"]/abbr[@class="form-required"]'); $this->assertTrue(isset($elements[0]), t("Label tag with required marker precedes required textfield with no title.")); - $elements = $this->xpath('//input[@id="edit-form-textfield-test-title-invisible"]/preceding-sibling::label[@for="edit-form-textfield-test-title-invisible" and @class="element-invisible"]'); - $this->assertTrue(isset($elements[0]), t("Label preceding field and label class is element-invisible.")); + $elements = $this->xpath('//input[@id="edit-form-textfield-test-title-invisible"]/preceding-sibling::label[@for="edit-form-textfield-test-title-invisible" and @class="visuallyhidden"]'); + $this->assertTrue(isset($elements[0]), t("Label preceding field and label class is visuallyhidden.")); $elements = $this->xpath('//input[@id="edit-form-textfield-test-title"]/preceding-sibling::abbr[@class="form-required"]'); $this->assertFalse(isset($elements[0]), t("No required marker on non-required field.")); diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index 819df67..8d441b3 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -2525,7 +2525,7 @@ function theme_status_report($variables) { $severity = $severities[REQUIREMENT_INFO]; } - $severity['icon'] = '
' . $severity['title'] . '
'; + $severity['icon'] = '
' . $severity['title'] . '
'; // Output table rows. $output .= ''; diff --git a/core/modules/system/system.base.css b/core/modules/system/system.base.css index 68a1683..8316965 100644 --- a/core/modules/system/system.base.css +++ b/core/modules/system/system.base.css @@ -220,7 +220,7 @@ tr .ajax-progress-throbber .throbber { * from a user. The effect of this class can be toggled with the jQuery show() * and hide() functions. */ -.element-hidden { +.hidden { display: none; } @@ -232,17 +232,17 @@ tr .ajax-progress-throbber .throbber { * manner should be kept concise, to avoid unnecessary burden on the user. * "!important" is used to prevent unintentional overrides. */ -.element-invisible { +.visuallyhidden { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); } /** - * The .element-focusable class extends the .element-invisible class to allow + * The .focusable class extends the .visuallyhidden class to allow * the element to be focusable when navigated to via the keyboard. */ -.element-invisible.element-focusable:active, -.element-invisible.element-focusable:focus { +.visuallyhidden.focusable:active, +.visuallyhidden.focusable:focus { position: static !important; clip: auto; } diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module index 904a2f8..ef56bf0 100644 --- a/core/modules/toolbar/toolbar.module +++ b/core/modules/toolbar/toolbar.module @@ -212,7 +212,7 @@ function toolbar_view() { '#theme' => 'links__toolbar_menu', '#links' => $links, '#attributes' => array('id' => 'toolbar-menu'), - '#heading' => array('text' => t('Administrative toolbar'), 'level' => 'h2', 'class' => 'element-invisible'), + '#heading' => array('text' => t('Administrative toolbar'), 'level' => 'h2', 'class' => 'visuallyhidden'), ); // Add logout & user account links or login link. @@ -324,7 +324,7 @@ function toolbar_menu_navigation_links($tree) { // Add admin link ID. $link['attributes'] = array('id' => 'toolbar-link-' . $id); if (!empty($item['link']['description'])) { - $link['title'] .= ' (' . $item['link']['description'] . ')'; + $link['title'] .= ' (' . $item['link']['description'] . ')'; $link['attributes']['title'] = $item['link']['description']; } $link['html'] = TRUE; diff --git a/core/themes/bartik/template.php b/core/themes/bartik/template.php index 7db1a31..44fd91d 100644 --- a/core/themes/bartik/template.php +++ b/core/themes/bartik/template.php @@ -114,7 +114,7 @@ function bartik_process_maintenance_page(&$variables) { function bartik_preprocess_block(&$variables) { // In the header region visually hide block titles. if ($variables['block']->region == 'header') { - $variables['title_attributes_array']['class'][] = 'element-invisible'; + $variables['title_attributes_array']['class'][] = 'visuallyhidden'; } } diff --git a/core/themes/bartik/templates/maintenance-page.tpl.php b/core/themes/bartik/templates/maintenance-page.tpl.php index 9cdeff7..3fdd23f 100644 --- a/core/themes/bartik/templates/maintenance-page.tpl.php +++ b/core/themes/bartik/templates/maintenance-page.tpl.php @@ -25,23 +25,23 @@ >