Skip to content

usa-header--extended usa-logo text width: Fixed to work with theme setting #5008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

RSD-accessboard
Copy link
Contributor

@RSD-accessboard RSD-accessboard commented Oct 26, 2022

Description

USWDS documentation on header says there is a theme setting to adjust the logo text width. It does not work with header--extended. This fixes that.
max-width: $theme-header-logo-text-width;

USWDS settings

Verify where else this variable is used and if the default value needs to be updated. Documentation says default value is 33%, header-extended uses default value 50%.

Breaking change

⚠️ This is potentially a breaking change.
For extended headers, the default value of $theme-header-logo-text-width is 33%, which is narrower than the previous hard-coded value of 50%. This can cause unexpected line breaks in your logo text. When updating, be sure to confirm that there are no visual regressions.

USWDS documentation on header says there is a theme setting to adjust the logo text width. It does not work with header-extended. This fixes that.
https://designsystem.digital.gov/documentation/settings/
Verify where else this variable is used and if the default value needs to be updated. Documentation says default values 33%, header-extended uses default value 50%
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for making this change!

Tested extended header (desktop width) in:

  • Firefox
  • Chromium
  • Safari

Safari
image

Chromium
image

Firefox
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants