File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1748,6 +1748,7 @@ body.full-overlay-active {
17481748 background : transparent;
17491749 border : none;
17501750 height : 45px ;
1751+ min-width : 50px ;
17511752 padding : 0 3px ;
17521753 margin : 0 0 0 -4px ;
17531754 box-shadow : none;
@@ -1767,9 +1768,9 @@ body.full-overlay-active {
17671768.wp-full-overlay-footer .devices button : before {
17681769 display : inline-block;
17691770 -webkit-font-smoothing : antialiased;
1770- font : normal 20 px/30px "dashicons" ;
1771+ font : normal 20 px/20px "dashicons" ;
17711772 vertical-align : top;
1772- margin : 3 px 0 ;
1773+ margin : 0 0 -2 px ;
17731774 padding : 4px 8px ;
17741775 color : # 646970 ;
17751776}
@@ -1812,6 +1813,12 @@ body.full-overlay-active {
18121813 content : "\f470" / '' ;
18131814}
18141815
1816+ .wp-full-overlay-footer .devices .devices__preview-label {
1817+ display : block;
1818+ font-size : 10px ;
1819+ line-height : 1 ;
1820+ }
1821+
18151822@media screen and (max-width : 1024px ) {
18161823 .wp-full-overlay-footer .devices {
18171824 display : none;
Original file line number Diff line number Diff line change 275275 </button>
276276 <?php $ previewable_devices = $ wp_customize ->get_previewable_devices (); ?>
277277 <?php if ( ! empty ( $ previewable_devices ) ) : ?>
278- <div class="devices-wrapper">
278+ <div class="devices-wrapper" role="group" aria-label=" <?php echo esc_attr_x ( ' Responsive Views ' , ' label for responsive previews group ' ); ?> " >
279279 <div class="devices">
280280 <?php foreach ( (array ) $ previewable_devices as $ device => $ settings ) : ?>
281281 <?php
289289 }
290290 ?>
291291 <button type="button" class="<?php echo esc_attr ( $ class ); ?> " aria-pressed="<?php echo esc_attr ( $ active ); ?> " data-device="<?php echo esc_attr ( $ device ); ?> ">
292- <span class="screen-reader-text "><?php echo esc_html ( $ settings ['label ' ] ); ?> </span>
292+ <span class="devices__preview-label "><?php echo esc_html ( $ settings ['label ' ] ); ?> </span>
293293 </button>
294294 <?php endforeach ; ?>
295295 </div>
Original file line number Diff line number Diff line change @@ -5044,14 +5044,14 @@ public function customize_pane_settings() {
50445044 public function get_previewable_devices () {
50455045 $ devices = array (
50465046 'desktop ' => array (
5047- 'label ' => __ ( 'Enter desktop preview mode ' ),
5047+ 'label ' => __ ( 'Desktop ' ),
50485048 'default ' => true ,
50495049 ),
50505050 'tablet ' => array (
5051- 'label ' => __ ( 'Enter tablet preview mode ' ),
5051+ 'label ' => __ ( 'Tablet ' ),
50525052 ),
50535053 'mobile ' => array (
5054- 'label ' => __ ( 'Enter mobile preview mode ' ),
5054+ 'label ' => __ ( 'Mobile ' ),
50555055 ),
50565056 );
50575057
Original file line number Diff line number Diff line change @@ -3519,14 +3519,14 @@ public function test_get_previewable_devices() {
35193519 // The default devices list.
35203520 $ default_devices = array (
35213521 'desktop ' => array (
3522- 'label ' => __ ( 'Enter desktop preview mode ' ),
3522+ 'label ' => __ ( 'Desktop ' ),
35233523 'default ' => true ,
35243524 ),
35253525 'tablet ' => array (
3526- 'label ' => __ ( 'Enter tablet preview mode ' ),
3526+ 'label ' => __ ( 'Tablet ' ),
35273527 ),
35283528 'mobile ' => array (
3529- 'label ' => __ ( 'Enter mobile preview mode ' ),
3529+ 'label ' => __ ( 'Mobile ' ),
35303530 ),
35313531 );
35323532
@@ -3551,7 +3551,7 @@ public function test_get_previewable_devices() {
35513551 private function filtered_device_list () {
35523552 return array (
35533553 'custom-device ' => array (
3554- 'label ' => __ ( 'Enter custom- device preview mode ' ),
3554+ 'label ' => __ ( 'Custom device ' ),
35553555 'default ' => true ,
35563556 ),
35573557 );
Original file line number Diff line number Diff line change @@ -146,14 +146,14 @@ window._wpCustomizeSettings = {
146146 } ,
147147 'previewableDevices' : {
148148 'desktop' : {
149- 'label' : 'Enter desktop preview mode ' ,
149+ 'label' : 'Desktop ' ,
150150 'default' : true
151151 } ,
152152 'tablet' : {
153- 'label' : 'Enter tablet preview mode '
153+ 'label' : 'Tablet '
154154 } ,
155155 'mobile' : {
156- 'label' : 'Enter mobile preview mode '
156+ 'label' : 'Mobile '
157157 }
158158 } ,
159159 initialClientTimestamp : 1506510531595 ,
You can’t perform that action at this time.
0 commit comments