Skip to content

Commit

Permalink
Update Header.tsx and compilation options
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Jan 22, 2025
1 parent 9b77127 commit 41814cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const Header = ({ locale }: Props) => {
<Link href="/" className="position-relative">
<Image
alt={t("title")}
src={GrantsLogo as string}
src={GrantsLogo}
className="height-4 display-block position-relative desktop:height-auto"
unoptimized
priority
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/styles/_uswds-theme-custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,12 @@ button.usa-pagination__button.usa-button {
}
}
}

// revert to behavior before upgrade https://github.com/uswds/uswds/commit/2785b67e58ae19f161101f4859afff0e9664fbda
.usa-header--basic {
@include at-media($theme-header-min-width) {
.usa-nav {
padding: 0 0 units(0.5) units(1);
}
}
}
2 changes: 1 addition & 1 deletion frontend/src/styles/_uswds-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in the form $setting: value,
@use "uswds-core" with (
// Disable scary but mostly irrelevant warnings:
$theme-show-notifications: false,

$theme-show-compile-warnings: false,
// Specify USWDS font and image paths.
// Same paths are successfully used for both Next.js and Storybook.
$theme-font-path: add-base-path("/uswds/fonts"),
Expand Down

0 comments on commit 41814cb

Please sign in to comment.