Accessibility: Privacy: Improve the readability of the suggested text in Privacy Policy Guide.

Per WCAG 2.0 guidelines, big chunks of italic text should be avoided for better accessibility.

Props birgire, sabernhardt, xkon, garrett-eclipse, melchoyce, karmatosed, afercia, jepperask, SergeyBiryukov.
Fixes #44621. See #47327.
Built from https://develop.svn.wordpress.org/trunk@47147


git-svn-id: http://core.svn.wordpress.org/trunk@46947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-01-31 03:25:05 +00:00
parent 39cef6947a
commit aef48b433b
5 changed files with 47 additions and 15 deletions

View File

@ -730,18 +730,34 @@ form#tags-filter {
margin-top: 6px;
}
.hide-privacy-policy-tutorial {
background-color: #fff;
}
.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
.hide-privacy-policy-tutorial .privacy-policy-tutorial {
visibility: hidden;
display: none;
}
.wp-suggested-text p {
font-style: italic;
.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
background-color: #fff;
margin: 0;
padding: 1em;
}
.wp-suggested-text p.wp-policy-help, /* For back-compat, see #49282 */
.wp-suggested-text p.privacy-policy-tutorial {
font-style: normal;
.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
padding-top: 0;
}
.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
margin: 1em 0;
padding: 0;
}
strong.wp-policy-help, /* For back-compat, see #49282 */
strong.privacy-policy-tutorial {
display: block;
margin: 0 0 1em;
}
.notice.wp-pp-notice {

File diff suppressed because one or more lines are too long

View File

@ -729,18 +729,34 @@ form#tags-filter {
margin-top: 6px;
}
.hide-privacy-policy-tutorial {
background-color: #fff;
}
.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
.hide-privacy-policy-tutorial .privacy-policy-tutorial {
visibility: hidden;
display: none;
}
.wp-suggested-text p {
font-style: italic;
.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
background-color: #fff;
margin: 0;
padding: 1em;
}
.wp-suggested-text p.wp-policy-help, /* For back-compat, see #49282 */
.wp-suggested-text p.privacy-policy-tutorial {
font-style: normal;
.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
padding-top: 0;
}
.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
margin: 1em 0;
padding: 0;
}
strong.wp-policy-help, /* For back-compat, see #49282 */
strong.privacy-policy-tutorial {
display: block;
margin: 0 0 1em;
}
.notice.wp-pp-notice {

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-47146';
$wp_version = '5.4-alpha-47147';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.