diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
index 0ffe623..2eb0e05 100644
|
|
img { |
3000 | 3000 | content: "\f140"; |
3001 | 3001 | } |
3002 | 3002 | |
3003 | | .js .sidebar-name .sidebar-name-arrow:before { |
3004 | | padding: 10px; |
3005 | | left: 0; |
3006 | | } |
3007 | | |
3008 | 3003 | .js #widgets-left .sidebar-name .sidebar-name-arrow { |
3009 | 3004 | display: none; |
3010 | 3005 | } |
… |
… |
img { |
3184 | 3179 | } |
3185 | 3180 | |
3186 | 3181 | .widget-top a.widget-action:focus:after { |
3187 | | -webkit-box-shadow: |
3188 | | 0 0 0 1px #5b9dd9, |
3189 | | 0 0 2px 1px rgba(30,140,190,.8); |
3190 | 3182 | box-shadow: |
3191 | 3183 | 0 0 0 1px #5b9dd9, |
3192 | 3184 | 0 0 2px 1px rgba(30,140,190,.8); |
… |
… |
img { |
3263 | 3255 | top: 12px; |
3264 | 3256 | right: 10px; |
3265 | 3257 | z-index: 1; |
| 3258 | width: 20px; |
| 3259 | border-radius: 50%; |
| 3260 | text-indent: -1px; /* account for the dashicon alignment */ |
3266 | 3261 | } |
3267 | 3262 | |
3268 | 3263 | .accordion-section-title:focus { |
… |
… |
img { |
3274 | 3269 | border-color: #a0a5aa transparent; |
3275 | 3270 | } |
3276 | 3271 | |
| 3272 | .js .accordion-section-title:focus:after { |
| 3273 | box-shadow: |
| 3274 | 0 0 0 1px #5b9dd9, |
| 3275 | 0 0 2px 1px rgba(30, 140, 190, .8); |
| 3276 | } |
| 3277 | |
3277 | 3278 | .cannot-expand .accordion-section-title { |
3278 | 3279 | cursor: auto; |
3279 | 3280 | } |
diff --git src/wp-admin/css/widgets.css src/wp-admin/css/widgets.css
index f0be076..ce7f236 100644
|
|
|
91 | 91 | box-sizing: border-box; |
92 | 92 | } |
93 | 93 | |
94 | | .sidebar-name-arrow { |
95 | | position: absolute; |
96 | | top: 0; |
97 | | right: 0; |
98 | | bottom: 0; |
| 94 | .js .sidebar-name .handlediv { |
| 95 | float: right; |
| 96 | width: 48px; |
| 97 | height: 48px; |
| 98 | padding: 0; |
| 99 | } |
| 100 | |
| 101 | .js .sidebar-name .handlediv:focus { |
| 102 | box-shadow: none; |
| 103 | outline: none; |
| 104 | } |
| 105 | |
| 106 | .js .sidebar-name .handlediv:focus .sidebar-name-arrow:before { |
| 107 | box-shadow: |
| 108 | 0 0 0 1px #5b9dd9, |
| 109 | 0 0 2px 1px rgba(30, 140, 190, .8); |
| 110 | } |
| 111 | |
| 112 | .js .sidebar-name .sidebar-name-arrow:before { |
| 113 | margin-top: 4px; |
| 114 | width: 20px; |
| 115 | border-radius: 50%; |
| 116 | text-indent: -1px; /* account for the dashicon alignment */ |
99 | 117 | } |
100 | 118 | |
101 | 119 | .js .sidebar-name { |
… |
… |
div#widgets-right .sidebar-name h3 { |
249 | 267 | padding: 15px 7px; |
250 | 268 | } |
251 | 269 | |
252 | | div#widgets-right .sidebar-name .sidebar-name-arrow:before { |
253 | | top: 2px; |
254 | | } |
255 | | |
256 | 270 | div#widgets-right .widget-top { |
257 | 271 | padding: 0; |
258 | 272 | } |
diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
index cc590e3..ab90c8b 100644
|
|
function do_accordion_sections( $screen, $context, $object ) { |
1148 | 1148 | } |
1149 | 1149 | ?> |
1150 | 1150 | <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>"> |
| 1151 | <button type="button" class="handlediv button-link" aria-expanded="true"> |
| 1152 | <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), $sidebar_name ); ?></span> |
| 1153 | <span class="sidebar-name-arrow" aria-hidden="true"></span> |
| 1154 | </button> |
1151 | 1155 | <h3 class="accordion-section-title hndle" tabindex="0"> |
1152 | 1156 | <?php echo esc_html( $box['title'] ); ?> |
1153 | 1157 | <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span> |
diff --git src/wp-admin/includes/widgets.php src/wp-admin/includes/widgets.php
index 746a892..b54f83f 100644
|
|
function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { |
80 | 80 | if ( $sidebar_name ) { |
81 | 81 | ?> |
82 | 82 | <div class="sidebar-name"> |
83 | | <div class="sidebar-name-arrow"><br /></div> |
| 83 | <button type="button" class="handlediv button-link" aria-expanded="true"> |
| 84 | <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), $sidebar_name ); ?></span> |
| 85 | <span class="sidebar-name-arrow" aria-hidden="true"></span> |
| 86 | </button> |
84 | 87 | <h2><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h2> |
85 | 88 | </div> |
86 | 89 | <?php |
… |
… |
function wp_widget_control( $sidebar_args ) { |
278 | 281 | */ |
279 | 282 | function wp_widgets_access_body_class($classes) { |
280 | 283 | return "$classes widgets_access "; |
281 | | } |
282 | | No newline at end of file |
| 284 | } |