Make WordPress Core

Changeset 57621


Ignore:
Timestamp:
02/13/2024 01:25:05 PM (9 months ago)
Author:
swissspidy
Message:

Twenty Twenty-Four: Wrap header navigation block in row.

Makes it easier to add siblings using the block hooks API without them being treated as flex items due to its parent being a row block.

Props tomjcafferkey, poena.
Fixes #60410.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfour/parts/header.html

    r56951 r57621  
    1616        <!-- /wp:group -->
    1717
    18         <!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
     18        <!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left"}} -->
     19        <div class="wp-block-group">
     20            <!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
     21        </div>
     22        <!-- /wp:group -->
    1923    </div>
    2024    <!-- /wp:group -->
Note: See TracChangeset for help on using the changeset viewer.