Skip to content

USWDS - Bug: Agency contact center in the footer component is not right-aligned in the grid #5214

@rachidatecs

Description

@rachidatecs

Describe the bug

The grid gap classes on that part of the footer cause a space on the right that misaligns what seems to be right-justified content and causes it to misalign from the grid. This misalignment becomes apparent if you have other right-justified content close-by:

Screen Shot 2023-04-05 at 10 09 33 AM

An easy fix that worked for me is to remove mobile-lg:grid-gap-2 on .usa-footer__logo and set the distance between the agency logo and title through CSS margin instead:

Screen Shot 2023-04-05 at 10 09 33 AM

I also removed the grip-gap on the parent grid-row in that usa-footer__secondary-section, but mileage could vary by use-case (in other word, some more work could be needed to fully align content in that section of the footer)

Steps to reproduce the bug

  1. Examine the alignment of the Agency section of the footer with the grid, specifically on the right side.

Expected Behavior

I expect the 'Agency Contact' section that is comprisd of the social nav, Agency Contact Center header and agency contact info to be right justified and align with the grid on the right.

Related code

No response

Screenshots

Screen Shot 2023-04-05 at 10 16 43 AM
Screen Shot 2023-04-05 at 10 09 33 AM

System setup

  • 3.4.1
  • OS
  • Chrome

Additional context

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions