Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions src/wp-admin/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ td > input[type="checkbox"],
}

input[type="radio"] {
display: inline-flex;
border-radius: 50%;
margin-right: 0.25rem;
/* 10px not sure if still necessary, comes from the MP6 redesign in r26072 */
line-height: 0.71428571;
align-items: center;
justify-content: center;
}

input[type="checkbox"]:checked::before,
Expand Down Expand Up @@ -211,10 +212,10 @@ input[type="radio"]:checked::before {
border-radius: 50%;
width: 0.5rem; /* 8px */
height: 0.5rem; /* 8px */
margin: 0.1875rem; /* 3px */
margin: auto;
background-color: #fff;
/* 16px not sure if still necessary, comes from the MP6 redesign in r26072 */
line-height: 1.14285714;
/* Only visible in Windows High Contrast mode */
outline: 4px solid transparent;
}

@-moz-document url-prefix() {
Expand Down Expand Up @@ -957,13 +958,6 @@ ul#add-to-blog-users {
line-height: 1.4;
}

.form-table input.tog,
.form-table input[type="radio"] {
margin-top: -4px;
margin-right: 4px;
float: none;
}

.form-table .pre {
padding: 8px;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ function admin_color_scheme_picker( $user_id ) {

?>
<div class="color-option <?php echo ( $color === $current_color ) ? 'selected' : ''; ?>">
<input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked( $color, $current_color ); ?> />
<input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" <?php checked( $color, $current_color ); ?> />
<input type="hidden" class="css_url" value="<?php echo esc_url( $color_info->url ); ?>" />
<input type="hidden" class="icon_colors" value="<?php echo esc_attr( wp_json_encode( array( 'icons' => $color_info->icon_colors ) ) ); ?>" />
<label for="admin_color_<?php echo esc_attr( $color ); ?>"><?php echo esc_html( $color_info->name ); ?></label>
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/options-reading.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@
<td id="front-static-pages"><fieldset>
<legend class="screen-reader-text"><span><?php echo $your_homepage_displays_title; ?></span></legend>
<p><label>
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
<input name="show_on_front" type="radio" value="posts" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
<?php _e( 'Your latest posts' ); ?>
</label>
</p>
<p><label>
<input name="show_on_front" type="radio" value="page" class="tog" <?php checked( 'page', get_option( 'show_on_front' ) ); ?> />
<input name="show_on_front" type="radio" value="page" <?php checked( 'page', get_option( 'show_on_front' ) ); ?> />
<?php
printf(
/* translators: %s: URL to Pages screen. */
Expand Down
Loading