From 5bafb4ea2d00d26a463f8ab9c4b2ce63f87a4ce2 Mon Sep 17 00:00:00 2001 From: desrosj Date: Fri, 12 Apr 2019 17:04:52 +0000 Subject: [PATCH] Site Health: Improve the test badge implementation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Label badges for each Site Health test currently display in either red, orange, or green, regardless of if the test passed or failed. This is confusing, as seeing red labels in the “Passed Test” section could alarm users (when really everything is OK and no action is required), and seeing green labels in the “Failed Tests” section would not appropriately encourage the user to take appropriate action. This change makes several improvements to the label badges: - Always right align the badges for consistent display. - Remove background fill for badges. Instead, use a border. - Use a consistent styling for all tests (passed and failed). - The text color no longer uses true black (#000000). - The `.badge.pink` CSS definition has been switched to `.badge.purple`, and the definitions for blue, gray, and green have also been updated to more closely follow the official WordPress color palette. Props: pbiron, garrett-eclipse, hedgefield, Clorith, xkon, melchoyce, mdwolinski, alexdenning. Fixes #46623. Built from https://develop.svn.wordpress.org/trunk@45169 git-svn-id: http://core.svn.wordpress.org/trunk@44978 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/site-health-rtl.css | 40 ++++++---------------- wp-admin/css/site-health-rtl.min.css | 2 +- wp-admin/css/site-health.css | 40 ++++++---------------- wp-admin/css/site-health.min.css | 2 +- wp-admin/includes/class-wp-site-health.php | 32 ++++++++--------- wp-includes/version.php | 2 +- 6 files changed, 41 insertions(+), 77 deletions(-) diff --git a/wp-admin/css/site-health-rtl.css b/wp-admin/css/site-health-rtl.css index 858bba57ce..7d3ab82966 100644 --- a/wp-admin/css/site-health-rtl.css +++ b/wp-admin/css/site-health-rtl.css @@ -275,7 +275,7 @@ .health-check-accordion-trigger { background: #fff; border: 0; - color: #212121; + color: #32373C; cursor: pointer; display: block; font-weight: 400; @@ -318,53 +318,35 @@ } .health-check-accordion-trigger .badge { - display: inline-block; + float: left; padding: 0.1rem 0.5rem 0.15rem; - background-color: #d7dade; - border-radius: 3px; - color: #000; + color: #32373C; font-weight: 600; - margin: 0 0.5rem; + margin: 0 0.5rem 0 2rem; } .health-check-accordion-trigger .badge.blue { - background-color: #0073af; - color: #fff; + border: 1px solid #BFE7F3; } .health-check-accordion-trigger .badge.orange { - background-color: #ffb900; - color: #000; + border: 1px solid #ffb900; } .health-check-accordion-trigger .badge.red { - background-color: #dc3232; - color: #fff; + border: 1px solid #dc3232; } .health-check-accordion-trigger .badge.green { - background-color: #40860a; - color: #fff; + border: 1px solid #46B450; } -.health-check-accordion-trigger .badge.pink { - background-color: #f4b0fc; - color: #000; +.health-check-accordion-trigger .badge.purple { + border: 1px solid #826EB4; } .health-check-accordion-trigger .badge.gray { - background-color: #ccc; - color: #000; -} - -.health-check-accordion-trigger .badge.light-blue { - background-color: #10e9fb; - color: #000; -} - -.health-check-accordion-trigger .badge.light-green { - background-color: #60f999; - color: #000; + border: 1px solid #ccd0d4; } .health-check-accordion-trigger[aria-expanded="true"] .icon { diff --git a/wp-admin/css/site-health-rtl.min.css b/wp-admin/css/site-health-rtl.min.css index 1612494ccf..60e3c43d58 100644 --- a/wp-admin/css/site-health-rtl.min.css +++ b/wp-admin/css/site-health-rtl.min.css @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-right:0}.health-check-header h1{display:inline-block;font-weight:600;margin:1rem .8rem;font-size:23px;padding:9px 0 4px 0;line-height:1.3}.health-check-body h2{padding:1rem 0;line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.health-check-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #e2e4e7}.health-check-title-section{display:flex;align-items:center;justify-content:center;clear:both}.site-health-progress{display:inline-block;height:40px;width:40px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;right:50%;top:50%;margin-top:-40px;margin-right:-40px;border-radius:100%;line-height:6.3;font-size:2em}.site-health-progress-count::after{content:""}.site-health-progress.loading .site-health-progress-count::after{content:"···"}.site-health-progress.loading svg #bar{stroke-dashoffset:0;stroke:#adc5d2;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#ccc;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#dc3232}.site-health-progress svg #bar.green{stroke:#46b450}.site-health-progress svg #bar.orange{stroke:#ffb900}@keyframes loadingPulse{0%{stroke:#adc5d2}50%{stroke:#00a0d2}100%{stroke:#adc5d2}}.health-check-tab{display:inline-block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:focus{color:#191e23;outline:1px solid #6c7781;box-shadow:none}.health-check-tab.active{box-shadow:inset 0 -3px #007cba;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";display:inline-block;color:#46b450;font-family:dashicons;vertical-align:top}.health-check-body .warning::before{content:"\f460";display:inline-block;color:#ffb900;font-family:dashicons}.health-check-body .info::before{content:"\f348";display:inline-block;color:#00a0d2;font-family:dashicons}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";display:inline-block;color:#dc3232;font-family:dashicons}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{margin:.5rem 0 1rem}.site-health-copy-buttons .success{display:none;color:#40860a;line-height:1.8;margin-right:.5rem}.site-health-copy-buttons .success.visible{display:inline-block;height:28px;line-height:2.2}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin-top:0}@media all and (min-width:784px){.site-status-all-clear{margin:5rem 0}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:130px;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.health-check-accordion{border:1px solid #e2e4e7}.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-heading:first-child{border-top:none}.health-check-accordion-trigger{background:#fff;border:0;color:#212121;cursor:pointer;display:block;font-weight:400;margin:0;padding:1em 1.5em;position:relative;text-align:right;width:100%}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover{background:#f8f9f9}.health-check-accordion-trigger:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.health-check-accordion-trigger .title{display:inline-block;pointer-events:none;font-weight:600}.health-check-accordion-trigger .icon{border:solid #191e23;border-width:0 0 2px 2px;height:.5rem;pointer-events:none;position:absolute;left:1.5em;top:50%;transform:translateY(-70%) rotate(-45deg);width:.5rem}.health-check-accordion-trigger .badge{display:inline-block;padding:.1rem .5rem .15rem;background-color:#d7dade;border-radius:3px;color:#000;font-weight:600;margin:0 .5rem}.health-check-accordion-trigger .badge.blue{background-color:#0073af;color:#fff}.health-check-accordion-trigger .badge.orange{background-color:#ffb900;color:#000}.health-check-accordion-trigger .badge.red{background-color:#dc3232;color:#fff}.health-check-accordion-trigger .badge.green{background-color:#40860a;color:#fff}.health-check-accordion-trigger .badge.pink{background-color:#f4b0fc;color:#000}.health-check-accordion-trigger .badge.gray{background-color:#ccc;color:#000}.health-check-accordion-trigger .badge.light-blue{background-color:#10e9fb;color:#000}.health-check-accordion-trigger .badge.light-green{background-color:#60f999;color:#000}.health-check-accordion-trigger[aria-expanded=true] .icon{transform:translateY(-30%) rotate(135deg)}.health-check-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden]{display:none}.site-health .notice{margin:5px 22px 15px 20px}.site-health .update-nag{margin-bottom:20px;margin-right:22px}@media screen and (max-width:782px){.health-check-body{margin:0 12px;width:auto}.site-health .notice{margin:5px 10px 15px}.site-health .update-nag{margin-left:10px;margin-right:10px}}@media only screen and (max-width:1004px){.health-check-body{margin:0 22px;width:auto}} \ No newline at end of file +.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-right:0}.health-check-header h1{display:inline-block;font-weight:600;margin:1rem .8rem;font-size:23px;padding:9px 0 4px 0;line-height:1.3}.health-check-body h2{padding:1rem 0;line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.health-check-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #e2e4e7}.health-check-title-section{display:flex;align-items:center;justify-content:center;clear:both}.site-health-progress{display:inline-block;height:40px;width:40px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;right:50%;top:50%;margin-top:-40px;margin-right:-40px;border-radius:100%;line-height:6.3;font-size:2em}.site-health-progress-count::after{content:""}.site-health-progress.loading .site-health-progress-count::after{content:"···"}.site-health-progress.loading svg #bar{stroke-dashoffset:0;stroke:#adc5d2;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#ccc;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#dc3232}.site-health-progress svg #bar.green{stroke:#46b450}.site-health-progress svg #bar.orange{stroke:#ffb900}@keyframes loadingPulse{0%{stroke:#adc5d2}50%{stroke:#00a0d2}100%{stroke:#adc5d2}}.health-check-tab{display:inline-block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:focus{color:#191e23;outline:1px solid #6c7781;box-shadow:none}.health-check-tab.active{box-shadow:inset 0 -3px #007cba;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";display:inline-block;color:#46b450;font-family:dashicons;vertical-align:top}.health-check-body .warning::before{content:"\f460";display:inline-block;color:#ffb900;font-family:dashicons}.health-check-body .info::before{content:"\f348";display:inline-block;color:#00a0d2;font-family:dashicons}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";display:inline-block;color:#dc3232;font-family:dashicons}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{margin:.5rem 0 1rem}.site-health-copy-buttons .success{display:none;color:#40860a;line-height:1.8;margin-right:.5rem}.site-health-copy-buttons .success.visible{display:inline-block;height:28px;line-height:2.2}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin-top:0}@media all and (min-width:784px){.site-status-all-clear{margin:5rem 0}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:130px;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.health-check-accordion{border:1px solid #e2e4e7}.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-heading:first-child{border-top:none}.health-check-accordion-trigger{background:#fff;border:0;color:#32373c;cursor:pointer;display:block;font-weight:400;margin:0;padding:1em 1.5em;position:relative;text-align:right;width:100%}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover{background:#f8f9f9}.health-check-accordion-trigger:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.health-check-accordion-trigger .title{display:inline-block;pointer-events:none;font-weight:600}.health-check-accordion-trigger .icon{border:solid #191e23;border-width:0 0 2px 2px;height:.5rem;pointer-events:none;position:absolute;left:1.5em;top:50%;transform:translateY(-70%) rotate(-45deg);width:.5rem}.health-check-accordion-trigger .badge{float:left;padding:.1rem .5rem .15rem;color:#32373c;font-weight:600;margin:0 .5rem 0 2rem}.health-check-accordion-trigger .badge.blue{border:1px solid #bfe7f3}.health-check-accordion-trigger .badge.orange{border:1px solid #ffb900}.health-check-accordion-trigger .badge.red{border:1px solid #dc3232}.health-check-accordion-trigger .badge.green{border:1px solid #46b450}.health-check-accordion-trigger .badge.purple{border:1px solid #826eb4}.health-check-accordion-trigger .badge.gray{border:1px solid #ccd0d4}.health-check-accordion-trigger[aria-expanded=true] .icon{transform:translateY(-30%) rotate(135deg)}.health-check-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden]{display:none}.site-health .notice{margin:5px 22px 15px 20px}.site-health .update-nag{margin-bottom:20px;margin-right:22px}@media screen and (max-width:782px){.health-check-body{margin:0 12px;width:auto}.site-health .notice{margin:5px 10px 15px}.site-health .update-nag{margin-left:10px;margin-right:10px}}@media only screen and (max-width:1004px){.health-check-body{margin:0 22px;width:auto}} \ No newline at end of file diff --git a/wp-admin/css/site-health.css b/wp-admin/css/site-health.css index 1a9c8cd667..29cd443faa 100644 --- a/wp-admin/css/site-health.css +++ b/wp-admin/css/site-health.css @@ -275,7 +275,7 @@ .health-check-accordion-trigger { background: #fff; border: 0; - color: #212121; + color: #32373C; cursor: pointer; display: block; font-weight: 400; @@ -318,53 +318,35 @@ } .health-check-accordion-trigger .badge { - display: inline-block; + float: right; padding: 0.1rem 0.5rem 0.15rem; - background-color: #d7dade; - border-radius: 3px; - color: #000; + color: #32373C; font-weight: 600; - margin: 0 0.5rem; + margin: 0 2rem 0 0.5rem; } .health-check-accordion-trigger .badge.blue { - background-color: #0073af; - color: #fff; + border: 1px solid #BFE7F3; } .health-check-accordion-trigger .badge.orange { - background-color: #ffb900; - color: #000; + border: 1px solid #ffb900; } .health-check-accordion-trigger .badge.red { - background-color: #dc3232; - color: #fff; + border: 1px solid #dc3232; } .health-check-accordion-trigger .badge.green { - background-color: #40860a; - color: #fff; + border: 1px solid #46B450; } -.health-check-accordion-trigger .badge.pink { - background-color: #f4b0fc; - color: #000; +.health-check-accordion-trigger .badge.purple { + border: 1px solid #826EB4; } .health-check-accordion-trigger .badge.gray { - background-color: #ccc; - color: #000; -} - -.health-check-accordion-trigger .badge.light-blue { - background-color: #10e9fb; - color: #000; -} - -.health-check-accordion-trigger .badge.light-green { - background-color: #60f999; - color: #000; + border: 1px solid #ccd0d4; } .health-check-accordion-trigger[aria-expanded="true"] .icon { diff --git a/wp-admin/css/site-health.min.css b/wp-admin/css/site-health.min.css index 3ea9c2b66f..a23fef4800 100644 --- a/wp-admin/css/site-health.min.css +++ b/wp-admin/css/site-health.min.css @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-left:0}.health-check-header h1{display:inline-block;font-weight:600;margin:1rem .8rem;font-size:23px;padding:9px 0 4px 0;line-height:1.3}.health-check-body h2{padding:1rem 0;line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.health-check-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #e2e4e7}.health-check-title-section{display:flex;align-items:center;justify-content:center;clear:both}.site-health-progress{display:inline-block;height:40px;width:40px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;left:50%;top:50%;margin-top:-40px;margin-left:-40px;border-radius:100%;line-height:6.3;font-size:2em}.site-health-progress-count::after{content:""}.site-health-progress.loading .site-health-progress-count::after{content:"···"}.site-health-progress.loading svg #bar{stroke-dashoffset:0;stroke:#adc5d2;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#ccc;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#dc3232}.site-health-progress svg #bar.green{stroke:#46b450}.site-health-progress svg #bar.orange{stroke:#ffb900}@keyframes loadingPulse{0%{stroke:#adc5d2}50%{stroke:#00a0d2}100%{stroke:#adc5d2}}.health-check-tab{display:inline-block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:focus{color:#191e23;outline:1px solid #6c7781;box-shadow:none}.health-check-tab.active{box-shadow:inset 0 -3px #007cba;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";display:inline-block;color:#46b450;font-family:dashicons;vertical-align:top}.health-check-body .warning::before{content:"\f460";display:inline-block;color:#ffb900;font-family:dashicons}.health-check-body .info::before{content:"\f348";display:inline-block;color:#00a0d2;font-family:dashicons}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";display:inline-block;color:#dc3232;font-family:dashicons}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{margin:.5rem 0 1rem}.site-health-copy-buttons .success{display:none;color:#40860a;line-height:1.8;margin-left:.5rem}.site-health-copy-buttons .success.visible{display:inline-block;height:28px;line-height:2.2}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin-top:0}@media all and (min-width:784px){.site-status-all-clear{margin:5rem 0}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:130px;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.health-check-accordion{border:1px solid #e2e4e7}.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-heading:first-child{border-top:none}.health-check-accordion-trigger{background:#fff;border:0;color:#212121;cursor:pointer;display:block;font-weight:400;margin:0;padding:1em 1.5em;position:relative;text-align:left;width:100%}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover{background:#f8f9f9}.health-check-accordion-trigger:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.health-check-accordion-trigger .title{display:inline-block;pointer-events:none;font-weight:600}.health-check-accordion-trigger .icon{border:solid #191e23;border-width:0 2px 2px 0;height:.5rem;pointer-events:none;position:absolute;right:1.5em;top:50%;transform:translateY(-70%) rotate(45deg);width:.5rem}.health-check-accordion-trigger .badge{display:inline-block;padding:.1rem .5rem .15rem;background-color:#d7dade;border-radius:3px;color:#000;font-weight:600;margin:0 .5rem}.health-check-accordion-trigger .badge.blue{background-color:#0073af;color:#fff}.health-check-accordion-trigger .badge.orange{background-color:#ffb900;color:#000}.health-check-accordion-trigger .badge.red{background-color:#dc3232;color:#fff}.health-check-accordion-trigger .badge.green{background-color:#40860a;color:#fff}.health-check-accordion-trigger .badge.pink{background-color:#f4b0fc;color:#000}.health-check-accordion-trigger .badge.gray{background-color:#ccc;color:#000}.health-check-accordion-trigger .badge.light-blue{background-color:#10e9fb;color:#000}.health-check-accordion-trigger .badge.light-green{background-color:#60f999;color:#000}.health-check-accordion-trigger[aria-expanded=true] .icon{transform:translateY(-30%) rotate(-135deg)}.health-check-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden]{display:none}.site-health .notice{margin:5px 20px 15px 22px}.site-health .update-nag{margin-bottom:20px;margin-left:22px}@media screen and (max-width:782px){.health-check-body{margin:0 12px;width:auto}.site-health .notice{margin:5px 10px 15px}.site-health .update-nag{margin-right:10px;margin-left:10px}}@media only screen and (max-width:1004px){.health-check-body{margin:0 22px;width:auto}} \ No newline at end of file +.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-left:0}.health-check-header h1{display:inline-block;font-weight:600;margin:1rem .8rem;font-size:23px;padding:9px 0 4px 0;line-height:1.3}.health-check-body h2{padding:1rem 0;line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.health-check-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #e2e4e7}.health-check-title-section{display:flex;align-items:center;justify-content:center;clear:both}.site-health-progress{display:inline-block;height:40px;width:40px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;left:50%;top:50%;margin-top:-40px;margin-left:-40px;border-radius:100%;line-height:6.3;font-size:2em}.site-health-progress-count::after{content:""}.site-health-progress.loading .site-health-progress-count::after{content:"···"}.site-health-progress.loading svg #bar{stroke-dashoffset:0;stroke:#adc5d2;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#ccc;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#dc3232}.site-health-progress svg #bar.green{stroke:#46b450}.site-health-progress svg #bar.orange{stroke:#ffb900}@keyframes loadingPulse{0%{stroke:#adc5d2}50%{stroke:#00a0d2}100%{stroke:#adc5d2}}.health-check-tab{display:inline-block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:focus{color:#191e23;outline:1px solid #6c7781;box-shadow:none}.health-check-tab.active{box-shadow:inset 0 -3px #007cba;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";display:inline-block;color:#46b450;font-family:dashicons;vertical-align:top}.health-check-body .warning::before{content:"\f460";display:inline-block;color:#ffb900;font-family:dashicons}.health-check-body .info::before{content:"\f348";display:inline-block;color:#00a0d2;font-family:dashicons}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";display:inline-block;color:#dc3232;font-family:dashicons}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{margin:.5rem 0 1rem}.site-health-copy-buttons .success{display:none;color:#40860a;line-height:1.8;margin-left:.5rem}.site-health-copy-buttons .success.visible{display:inline-block;height:28px;line-height:2.2}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin-top:0}@media all and (min-width:784px){.site-status-all-clear{margin:5rem 0}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:130px;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.health-check-accordion{border:1px solid #e2e4e7}.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-heading:first-child{border-top:none}.health-check-accordion-trigger{background:#fff;border:0;color:#32373c;cursor:pointer;display:block;font-weight:400;margin:0;padding:1em 1.5em;position:relative;text-align:left;width:100%}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover{background:#f8f9f9}.health-check-accordion-trigger:focus{color:#191e23;border:none;box-shadow:none;outline-offset:-2px;outline:1px dotted #555d66}.health-check-accordion-trigger .title{display:inline-block;pointer-events:none;font-weight:600}.health-check-accordion-trigger .icon{border:solid #191e23;border-width:0 2px 2px 0;height:.5rem;pointer-events:none;position:absolute;right:1.5em;top:50%;transform:translateY(-70%) rotate(45deg);width:.5rem}.health-check-accordion-trigger .badge{float:right;padding:.1rem .5rem .15rem;color:#32373c;font-weight:600;margin:0 2rem 0 .5rem}.health-check-accordion-trigger .badge.blue{border:1px solid #bfe7f3}.health-check-accordion-trigger .badge.orange{border:1px solid #ffb900}.health-check-accordion-trigger .badge.red{border:1px solid #dc3232}.health-check-accordion-trigger .badge.green{border:1px solid #46b450}.health-check-accordion-trigger .badge.purple{border:1px solid #826eb4}.health-check-accordion-trigger .badge.gray{border:1px solid #ccd0d4}.health-check-accordion-trigger[aria-expanded=true] .icon{transform:translateY(-30%) rotate(-135deg)}.health-check-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden]{display:none}.site-health .notice{margin:5px 20px 15px 22px}.site-health .update-nag{margin-bottom:20px;margin-left:22px}@media screen and (max-width:782px){.health-check-body{margin:0 12px;width:auto}.site-health .notice{margin:5px 10px 15px}.site-health .update-nag{margin-right:10px;margin-left:10px}}@media only screen and (max-width:1004px){.health-check-body{margin:0 22px;width:auto}} \ No newline at end of file diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 0fe620d9f9..15bdf418f3 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -183,7 +183,7 @@ class WP_Site_Health { 'status' => '', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => '', 'actions' => '', @@ -283,7 +283,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -399,7 +399,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -623,7 +623,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -712,7 +712,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

%s

', @@ -908,7 +908,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -988,7 +988,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1103,7 +1103,7 @@ class WP_Site_Health { 'status' => '', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1163,7 +1163,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1225,7 +1225,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1288,7 +1288,7 @@ class WP_Site_Health { 'status' => '', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1334,7 +1334,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1395,7 +1395,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), - 'color' => 'red', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1471,7 +1471,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1513,7 +1513,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', @@ -1584,7 +1584,7 @@ class WP_Site_Health { 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), - 'color' => 'orange', + 'color' => 'blue', ), 'description' => sprintf( '

%s

', diff --git a/wp-includes/version.php b/wp-includes/version.php index 3c597ab59a..732c1a60a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta2-45168'; +$wp_version = '5.2-beta2-45169'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.