Make WordPress Core

Ticket #58074: 58074.1.diff

File 58074.1.diff, 1.1 KB (added by sabernhardt, 3 years ago)

when a user selects a different font size for the table block, any child element inherits that size

  • src/wp-content/themes/twentytwelve/css/blocks.css

     
    242242        padding: 6px 10px 6px 0;
    243243}
    244244
     245.wp-block-table[style*="font-size"] *,
     246.wp-block-table[class*="-font-size"] * {
     247        font-size: inherit;
     248}
     249
    245250/*--------------------------------------------------------------
    2462514.0 Blocks - Layout Elements
    247252--------------------------------------------------------------*/
  • src/wp-content/themes/twentytwelve/css/editor-blocks.css

     
    315315        color: inherit;
    316316}
    317317
     318.editor-styles-wrapper .wp-block-table[style*="font-size"] *,
     319.editor-styles-wrapper .wp-block-table[class*="-font-size"] * {
     320        font-size: inherit;
     321}
     322
    318323.editor-block-list__block .wp-block-table th {
    319324        border: 0;
    320325        font-size: 11px;