Make WordPress Core

Changeset 47147


Ignore:
Timestamp:
01/31/2020 03:24:00 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/edit.css

    r47113 r47147  
    730730}
    731731
     732.hide-privacy-policy-tutorial {
     733    background-color: #fff;
     734}
     735
    732736.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */
    733737.hide-privacy-policy-tutorial .privacy-policy-tutorial {
    734     visibility: hidden;
    735 }
    736 
    737 .wp-suggested-text p {
    738     font-style: italic;
    739 }
    740 
    741 .wp-suggested-text p.wp-policy-help, /* For back-compat, see #49282 */
    742 .wp-suggested-text p.privacy-policy-tutorial {
    743     font-style: normal;
     738    display: none;
     739}
     740
     741.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     742    background-color: #fff;
     743    margin: 0;
     744    padding: 1em;
     745}
     746
     747.wp-suggested-text p:not(.privacy-policy-tutorial):not(.wp-policy-help) + p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     748    padding-top: 0;
     749}
     750
     751.hide-privacy-policy-tutorial p:not(.privacy-policy-tutorial):not(.wp-policy-help) {
     752    margin: 1em 0;
     753    padding: 0;
     754}
     755
     756strong.wp-policy-help, /* For back-compat, see #49282 */
     757strong.privacy-policy-tutorial {
     758    display: block;
     759    margin: 0 0 1em;
    744760}
    745761
Note: See TracChangeset for help on using the changeset viewer.