Visitar URL original
usa-header--extended usa-logo text width: Fixed to work with theme setting by RSD-3 · Pull Request #5008 · uswds/uswds · GitHub
Skip to content

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

Merged
thisisdano merged 1 commit into
uswds:developfrom
RSD-3:patch-1
Mar 8, 2023
Merged

thisisdano merged 1 commit into
uswds:developfrom
RSD-3:patch-1

Conversation

@RSD-3

@RSD-3 RSD-3 commented Oct 26, 2022 •

Copy link
Copy Markdown
Contributor

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%

@mejiaj mejiaj left a comment

Copy link
Copy Markdown
Contributor

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