Ticket #46573: 46573.7.diff
File 46573.7.diff, 1.2 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/admin/site-health.js
23 23 $( '.copy-field-success', $wrapper ).addClass( 'visible' ); 24 24 $( this ).focus(); 25 25 26 wp.a11y.speak( SiteHealth.string.site_info_copied , 'polite');26 wp.a11y.speak( SiteHealth.string.site_info_copied ); 27 27 } 28 28 } ); 29 29 … … 107 107 108 108 pct = ( ( 100 - val ) / 100 ) * c; 109 109 110 $circle.css( { strokeDashoffset: pct } );110 $circle.css( { strokeDashoffset: pct } ); 111 111 112 112 if ( 1 > parseInt( SiteHealth.site_status.issues.critical, 0 ) ) { 113 113 $( '#health-check-issues-critical' ).addClass( 'hidden' ); … … 133 133 $progressBar.attr( 'data-pct', val ); 134 134 $progressBar.attr( 'aria-valuenow', val ); 135 135 136 $( '.health-check-body' ).attr( 'aria-hidden', false );137 138 136 $.post( 139 137 ajaxurl, 140 138 { … … 144 142 } 145 143 ); 146 144 147 wp.a11y.speak( SiteHealth.string.site_health_complete_screen_reader.replace( '%s', val + '%' ) , 'polite');145 wp.a11y.speak( SiteHealth.string.site_health_complete_screen_reader.replace( '%s', val + '%' ) ); 148 146 } 149 147 150 148 /**