From bbbe3fdc4ce0ae29120b75a71aa38a4a2eac1b1b Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 8 Jul 2014 11:38:29 +0100 Subject: [PATCH] Issue #2289247 by lauriii, mgifford, sqndr | LewisNyman: Visually hide the table headers on the modules page. --- core/modules/system/css/system.admin.css | 12 ++++++------ core/modules/system/src/Form/ModulesListForm.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/modules/system/css/system.admin.css b/core/modules/system/css/system.admin.css index 74b473387e70..f62af51e78c3 100644 --- a/core/modules/system/css/system.admin.css +++ b/core/modules/system/css/system.admin.css @@ -47,16 +47,16 @@ small .admin-link:after { /** * Modules page. */ -#system-modules table { - table-layout: fixed; +#system-modules thead > tr { + border: 0; } #system-modules div.incompatible { font-weight: bold; } -#system-modules th.checkbox { +#system-modules td.checkbox { width: 4%; } -#system-modules th.name { +#system-modules td.module { width: 25%; } #system-modules td { @@ -105,10 +105,10 @@ small .admin-link:after { } @media screen and (max-width: 40em) { - #system-modules th.name { + #system-modules td.name { width: 20%; } - #system-modules th.description { + #system-modules td.description { width: 40%; } } diff --git a/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php index b58cab83efe0..f825071da6a1 100644 --- a/core/modules/system/src/Form/ModulesListForm.php +++ b/core/modules/system/src/Form/ModulesListForm.php @@ -175,9 +175,9 @@ public function buildForm(array $form, array &$form_state) { '#open' => TRUE, '#theme' => 'system_modules_details', '#header' => array( - array('data' => '<span class="visually-hidden">' . $this->t('Installed') . '</span>', 'class' => array('checkbox')), - array('data' => $this->t('Name'), 'class' => array('name')), - array('data' => $this->t('Description'), 'class' => array('description', RESPONSIVE_PRIORITY_LOW)), + array('data' => $this->t('Installed'), 'class' => array('checkbox', 'visually-hidden')), + array('data' => $this->t('Name'), 'class' => array('name', 'visually-hidden')), + array('data' => $this->t('Description'), 'class' => array('description', 'visually-hidden', RESPONSIVE_PRIORITY_LOW)), ), '#attributes' => array('class' => array('package-listing')), // Ensure that the "Core" package comes first. -- GitLab