Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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