Make WordPress Core

Changeset 46550


Ignore:
Timestamp:
10/15/2019 05:21:50 PM (6 years ago)
Author:
afercia
Message:

Accessibility: Script Loader: Remove jQuery as dependency of admin-bar after [46440].

A better approach needs to be explored, as there are valid concerns for potential conflicts between different jQuery versions added by themes or plugins.

See #47069.

Location:
trunk/src
Files:
9 edited

Legend:

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

    r46419 r46550  
    1111/* Needs higher specificiity. */
    1212.wp-picker-container .wp-color-result.button {
    13     min-height: 28px;
     13    min-height: 30px;
    1414    margin: 0 6px 6px 0px;
    1515    padding: 0 0 0 30px;
     
    2323    color: #555;
    2424    display: block;
    25     line-height: 2.36363636; /* 26px */
     25    line-height: 2.54545455; /* 28px */
    2626    padding: 0 6px;
    2727    text-align: center;
     
    7474.wp-customizer .wp-picker-input-wrap .button.wp-picker-default {
    7575    margin-left: 6px;
    76     padding: 2px 8px;
     76    padding: 0 8px;
     77    line-height: 2.54545455; /* 28px */
     78    min-height: 30px;
    7779}
    7880
     
    8890
    8991.wp-picker-container input[type="text"].wp-color-picker {
    90     width: 65px;
     92    width: 4rem;
    9193    font-size: 12px;
    9294    font-family: monospace;
    93     line-height: 1.33333333; /* 16px */
     95    line-height: 2.33333333; /* 28px */
    9496    margin: 0;
    95     padding: 5px;
     97    padding: 0 5px;
    9698    vertical-align: top;
    97     min-height: 28px;
     99    min-height: 30px;
    98100}
    99101
     
    133135@media screen and (max-width: 782px) {
    134136    .wp-picker-container input[type="text"].wp-color-picker {
    135         width: 80px;
    136         padding: 6px 5px 5px;
     137        width: 5rem;
    137138        font-size: 16px;
    138         line-height: 1.15;
     139        line-height: 1.875; /* 30px */
     140        min-height: 32px;
    139141    }
    140142
    141143    .wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
    142         padding: 5px 5px 4px;
     144        padding: 0 5px;
     145    }
     146
     147    .wp-picker-input-wrap .button.wp-picker-default {
     148        padding: 0 8px;
     149        line-height: 2.14285714; /* 30px */
     150        min-height: 32px;
     151    }
     152
     153    .wp-customizer .wp-picker-input-wrap .button.wp-picker-default {
     154        padding: 0 8px;
     155        font-size: 14px;
     156        line-height: 2.14285714; /* 30px */
     157        min-height: 32px;
    143158    }
    144159
    145160    .wp-picker-container .wp-color-result.button {
    146         height: auto;
    147161        padding: 0 0 0 40px;
    148162        font-size: 14px;
    149         line-height: 2.1;
     163        line-height: 2.14285714; /* 30px */
    150164    }
    151165
    152166    .wp-customizer .wp-picker-container .wp-color-result.button {
    153         font-size: 13px;
    154         line-height: 2;
     167        font-size: 14px;
     168        line-height: 2.14285714; /* 30px */
    155169    }
    156170
     
    165179    }
    166180}
    167 
    168 @media screen and (max-width: 640px) {
    169     .wp-customizer .wp-picker-container .wp-color-result.button {
    170         font-size: 14px;
    171         line-height: 2.1;
    172     }
    173 
    174     .wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
    175         padding: 6px 5px;
    176     }
    177 }
  • trunk/src/wp-admin/css/common.css

    r46425 r46550  
    925925#delete-action {
    926926    float: left;
    927     line-height: 2.1;
     927    line-height: 2.30769231; /* 30px */
    928928}
    929929
    930930#delete-link {
    931     line-height: 2.1;
     931    line-height: 2.30769231; /* 30px */
    932932    vertical-align: middle;
    933933    text-align: left;
     
    946946
    947947#publishing-action .spinner {
    948     float: left;
     948    float: none;
     949    margin-top: 5px;
    949950}
    950951
     
    10871088
    10881089.wp-filter .search-form input[type="search"] {
    1089     margin: 0;
     1090    margin: 1px 0;
    10901091    width: 280px;
    10911092    max-width: 100%;
  • trunk/src/wp-admin/css/customize-controls.css

    r46419 r46550  
    160160    transform: none;
    161161    margin-top: 0;
     162    line-height: 2;
    162163}
    163164
     
    28722873
    28732874    .wp-core-ui.wp-customizer .button {
    2874         padding: 6px 14px;
    2875         line-height: normal;
     2875        min-height: 30px;
     2876        padding: 0 14px;
     2877        line-height: 2;
    28762878        font-size: 14px;
    28772879        vertical-align: middle;
    2878         height: auto;
    2879     }
    2880 
    2881     #publish-settings {
    2882         height: 31px;
    28832880    }
    28842881
  • trunk/src/wp-admin/css/forms.css

    r46419 r46550  
    2929input,
    3030select {
    31     margin: 1px;
     31    margin: 0 1px;
    3232}
    3333
     
    316316    box-shadow: none;
    317317    border-radius: 3px;
    318     padding: 3px 24px 3px 8px;
    319     min-height: 28px;
     318    padding: 4px 24px 4px 8px;
     319    min-height: 30px;
    320320    max-width: 25rem;
    321321    vertical-align: middle;
     
    485485#doaction2,
    486486#post-query-submit {
    487     margin: 1px 8px 0 0;
    488 }
    489 
    490 .tablenav #changeit,
    491 .tablenav #delete_all,
    492 .tablenav #clear-recent-list,
    493 .wp-filter #delete_all {
    494     margin-top: 1px;
     487    margin: 0 8px 0 0;
    495488}
    496489
     
    509502    position: relative;
    510503    top: 3px;
     504    width: 1.25rem;
     505    height: 1.25rem;
     506    top: 0.25rem;
     507    font-size: 20px;
    511508}
    512509
     
    602599    margin-bottom: 0;
    603600    /* Same height as the buttons */
    604     line-height: 20px;
    605     min-height: 28px;
    606     max-height: 40px;
     601    min-height: 30px;
     602}
     603
     604/* Hide the Edge "reveal password" native button */
     605.wp-pwd input::-ms-reveal {
     606    display: none;
    607607}
    608608
     
    634634    float: left;
    635635    margin: 0 4px 0 0;
     636}
     637
     638.plugins-php .search-box .wp-filter-search {
     639    font-size: inherit;
    636640}
    637641
     
    15621566        right: 0;
    15631567        top: 0;
     1568        width: 2.375rem;
     1569        height: 2.375rem;
     1570        min-width: 40px;
     1571        min-height: 40px;
    15641572    }
    15651573
    15661574    .wp-pwd button.wp-hide-pw {
    1567         right: 40px;
     1575        right: 2.5rem;
    15681576    }
    15691577
     
    15861594    .wp-pwd [type="password"] {
    15871595        line-height: 2;
     1596        padding-right: 5rem;
    15881597    }
    15891598
  • trunk/src/wp-admin/css/list-tables.css

    r46356 r46550  
    639639    height: 30px;
    640640    margin: 6px 0 4px;
     641    padding-top: 5px;
    641642    vertical-align: middle;
    642643}
     
    648649.tablenav .tablenav-pages {
    649650    float: right;
    650     margin: 3px 0 9px;
     651    margin: 0 0 9px;
    651652}
    652653
     
    660661    display: inline-block;
    661662    vertical-align: baseline;
    662     min-width: 28px;
    663     min-height: 28px;
     663    min-width: 30px;
     664    min-height: 30px;
    664665    margin: 0;
    665666    padding: 0 4px;
    666667    font-size: 16px;
    667     line-height: 1.5;
     668    line-height: 1.625; /* 26px */
    668669    text-align: center;
    669670}
     
    679680
    680681.tablenav .actions {
    681     overflow: hidden;
    682     padding: 2px 8px 0 0;
     682    padding: 0 8px 0 0;
    683683}
    684684
     
    10391039    vertical-align: middle;
    10401040    text-align: center;
    1041     padding: 6px 4px;
     1041    padding: 0 4px;
    10421042}
    10431043
     
    19581958    }
    19591959
     1960    .inline-edit-row fieldset input[name=jj],
     1961    .inline-edit-row fieldset input[name=hh],
     1962    .inline-edit-row fieldset input[name=mn],
     1963    .inline-edit-row fieldset input[name=aa] {
     1964        font-size: 16px;
     1965        line-height: 2;
     1966        padding: 3px 4px;
     1967    }
     1968
    19601969    .inline-edit-row fieldset ul.cat-checklist label,
    19611970    .inline-edit-row #bulk-titles div {
  • trunk/src/wp-includes/css/buttons.css

    r46425 r46550  
    4747    text-decoration: none;
    4848    font-size: 13px;
    49     line-height: 2;
    50     min-height: 28px;
     49    line-height: 2.15384615; /* 28px */
     50    min-height: 30px;
    5151    margin: 0;
    5252    padding: 0 10px;
     
    7272.wp-core-ui .button.button-large,
    7373.wp-core-ui .button-group.button-large .button {
    74     min-height: 30px;
    75     line-height: 2.15384615;
    76     padding: 0 12px 2px;
     74    min-height: 32px;
     75    line-height: 2.30769231; /* 30px */
     76    padding: 0 12px;
    7777}
    7878
    7979.wp-core-ui .button.button-small,
    8080.wp-core-ui .button-group.button-small .button {
    81     min-height: 24px;
    82     line-height: 2;
     81    min-height: 26px;
     82    line-height: 2.18181818; /* 24px */
    8383    padding: 0 8px;
    8484    font-size: 11px;
     
    350350    input#save-post,
    351351    a.preview {
    352         padding: 1px 14px;
    353         line-height: 2;
     352        padding: 0 14px;
     353        line-height: 2.71428571; /* 38px */
    354354        font-size: 14px;
    355355        vertical-align: middle;
    356         height: auto;
     356        min-height: 40px;
    357357        margin-bottom: 4px;
    358358    }
     
    378378
    379379    .wp-core-ui.wp-customizer .button {
    380         padding: 0 10px 1px;
    381380        font-size: 13px;
    382         line-height: 2;
    383         min-height: 28px;
     381        line-height: 2.15384615; /* 28px */
     382        min-height: 30px;
    384383        margin: 0;
    385384        vertical-align: inherit;
  • trunk/src/wp-includes/css/editor.css

    r46359 r46550  
    12021202.wp-media-buttons span.wp-media-buttons-icon {
    12031203    display: inline-block;
    1204     width: 18px;
    1205     height: 18px;
    1206     vertical-align: text-top;
     1204    width: 20px;
     1205    height: 20px;
     1206    line-height: 1;
     1207    vertical-align: middle;
    12071208    margin: 0 2px;
    12081209}
     
    17771778    padding: 3px;
    17781779    box-sizing: border-box;
    1779     line-height: 1.28571429;
     1780    line-height: 1.28571429; /* 18px */
     1781    /* Override value inherited from default input fields. */
     1782    min-height: 26px;
    17801783}
    17811784
  • trunk/src/wp-includes/css/media-views.css

    r46549 r46550  
    7474.media-frame select,
    7575.wp-admin .media-frame select {
    76     min-height: 28px;
     76    min-height: 30px;
    7777    vertical-align: middle;
    7878}
  • trunk/src/wp-includes/script-loader.php

    r46546 r46550  
    14921492    $scripts->add( 'user-suggest', "/wp-admin/js/user-suggest$suffix.js", array( 'jquery-ui-autocomplete' ), false, 1 );
    14931493
    1494     $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'jquery' ), false, 1 );
     1494    $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array(), false, 1 );
    14951495
    14961496    $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.