Make WordPress Core


Ignore:
Timestamp:
03/22/2026 11:04:10 PM (6 days ago)
Author:
joedolson
Message:

Administration: Fix radio button selection alignment.

Fix issue where the selected state dot on radio buttons was not centered when scaling is set to a value greater than 100%. Remove the .tog class and styles, unused since [26072].

Props presskopp, siliconforks, suhan2411, sabernhardt, shailu25, joedolson.
Fixes #64816.

File:
1 edited

Legend:

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

    r62057 r62089  
    172172
    173173input[type="radio"] {
     174    display: inline-flex;
    174175    border-radius: 50%;
    175176    margin-right: 0.25rem;
    176     /* 10px not sure if still necessary, comes from the MP6 redesign in r26072 */
    177     line-height: 0.71428571;
     177    align-items: center;
     178    justify-content: center;
    178179}
    179180
     
    212213    width: 0.5rem; /* 8px */
    213214    height: 0.5rem; /* 8px */
    214     margin: 0.1875rem; /* 3px */
     215    margin: auto;
    215216    background-color: #fff;
    216     /* 16px not sure if still necessary, comes from the MP6 redesign in r26072 */
    217     line-height: 1.14285714;
     217    /* Only visible in Windows High Contrast mode */
     218    outline: 4px solid transparent;
    218219}
    219220
     
    958959}
    959960
    960 .form-table input.tog,
    961 .form-table input[type="radio"] {
    962     margin-top: -4px;
    963     margin-right: 4px;
    964     float: none;
    965 }
    966 
    967961.form-table .pre {
    968962    padding: 8px;
Note: See TracChangeset for help on using the changeset viewer.