From 01bc0b97720a74760f8b24723163bf583c5ed90c Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 1 Apr 2019 15:07:30 +0000 Subject: [PATCH] Accessibility: Improve the Site Health accordions. - removes the definition list and uses the markup from the ARIA Authoring Practices example - removes incorrect ARIA roles - avoids ARIA landmark regions proliferation Props mukesh27 for the initial patch. Fixes #46714. git-svn-id: https://develop.svn.wordpress.org/trunk@45087 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/site-health.css | 10 +++++++--- src/wp-admin/site-health-info.php | 26 +++++++++++++------------- src/wp-admin/site-health.php | 16 ++++++++-------- 3 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/wp-admin/css/site-health.css b/src/wp-admin/css/site-health.css index a9c6461b46..ec345ec04b 100644 --- a/src/wp-admin/css/site-health.css +++ b/src/wp-admin/css/site-health.css @@ -271,12 +271,16 @@ border: 1px solid #e2e4e7; } -.health-check-accordion dt { - font-weight: 600; +.health-check-accordion-heading { + margin: 0; border-top: 1px solid #e2e4e7; + font-size: inherit; + line-height: inherit; + font-weight: 600; + color: inherit; } -.health-check-accordion dt:first-child { +.health-check-accordion-heading:first-child { border-top: none; } diff --git a/src/wp-admin/site-health-info.php b/src/wp-admin/site-health-info.php index 713bc255f6..9bd9568dc5 100644 --- a/src/wp-admin/site-health-info.php +++ b/src/wp-admin/site-health-info.php @@ -95,7 +95,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); - + 0 - +
@@ -115,24 +115,24 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); 0 - +