Extra grid-container and grid-row in custom secondary footer content

Created on 7 May 2024, 7 months ago
Updated 21 August 2024, 3 months ago

Problem/Motivation

There's a seemingly redundant pair of grid-container/grid-row divs wrapping blocks added to the secondary footer region in the block layout. In page.html.twig, looks like there's a pair of these divs just inside the usa-footer__secondary-section div, and then another pair inside the if page.footer_secondary code.

The end result for my site is that my custom content added to the secondary footer is restricted in width, even when I use CSS to set max-width: none for grid-containers in the region (not entirely sure why this doesn't work).

Steps to reproduce

Install USWDS and add a block to the Secondary Footer region in Block Layout.

Proposed resolution

Remove the grid-container/grid-row divs inside the if page.footer_secondary code in the template. This works for me, but I'm also not using the "built-in" content for the secondary footer. Maybe a more general solution would be to use one grid-container with two grid-rows, one for the built-in content and one for the custom content?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

3.7

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024