Created
January 29, 2017 00:06
-
-
Save joelpittet/11a1c4fa4bebef395dc405e96e418749 to your computer and use it in GitHub Desktop.
Interdiff Patch for status report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/themes/seven/css/components/system-status-report.css b/core/themes/seven/css/components/system-status-report.css | |
index 54edd60..9cf91d0 100644 | |
--- a/core/themes/seven/css/components/system-status-report.css | |
+++ b/core/themes/seven/css/components/system-status-report.css | |
@@ -117,12 +117,19 @@ html:not(.details) .system-status-report__status-title { | |
.system-status-report__status-title { | |
width: 18rem; | |
float: left; /* LTR */ | |
+ cursor: default; | |
+ } | |
+ .system-status-report__status-title:hover, | |
+ .system-status-report__status-title:focus { | |
+ text-decoration: none; | |
} | |
[dir="rtl"] .system-status-report__status-title { | |
float: right; | |
} | |
- .collapse-processed > .system-status-report__status-title:before, | |
.system-status-report__status-title::-webkit-details-marker { | |
+ display: none; | |
+ } | |
+ .collapse-processed > .system-status-report__status-title:before { | |
position: relative; | |
top: 3px; | |
} | |
diff --git a/core/themes/seven/js/responsive-details.js b/core/themes/seven/js/responsive-details.js | |
index 9ea135c..92156a5 100644 | |
--- a/core/themes/seven/js/responsive-details.js | |
+++ b/core/themes/seven/js/responsive-details.js | |
@@ -26,7 +26,8 @@ | |
function detailsToggle(matches) { | |
if (matches) { | |
$details.attr('open', true); | |
- $summaries.attr('aria-expanded', true); | |
+ $summaries.attr('aria-expanded', true) | |
+ $summaries.on('click.details-open', false); | |
} | |
else { | |
// If user explicitly opened one, leave it alone. | |
@@ -36,6 +37,8 @@ | |
$notPressed | |
.parent('details') | |
.attr('open', false); | |
+ // After resize, allow user to close one that was previously opened. | |
+ $summaries.off('.details-open'); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment