Make WordPress Core


Ignore:
Timestamp:
03/25/2022 09:18:45 PM (3 years ago)
Author:
audrasjb
Message:

Twenty Nineteen: Override flex order in comment form.

This change updates Twenty Nineteen bundled theme to fix the DOM order in the comment form, and to add a new .comment-form-wrapper class to change flex display to block for this specific area.

Props garrett-eclipse, audrasjb, sabernhardt.
Fixes #46600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/comments.php

    r47122 r52993  
    6262        }
    6363        ?>
    64     </div><!-- .comments-title-flex -->
     64    </div><!-- .comments-title-wrap -->
    6565    <?php
    6666    if ( have_comments() ) :
     
    102102        if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) :
    103103            ?>
    104             <div class="comment-form-flex">
    105                 <span class="screen-reader-text"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></span>
     104            <div class="comment-form-flex comment-form-wrapper">
     105                <h2 class="comments-title"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2>
    106106                <?php twentynineteen_comment_form( 'asc' ); ?>
    107                 <h2 class="comments-title" aria-hidden="true"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2>
    108107            </div>
    109108            <?php
Note: See TracChangeset for help on using the changeset viewer.