Skip to content

Commit

Permalink
Merge pull request #257 from 18F/256/gov-banner-hidden
Browse files Browse the repository at this point in the history
Default the gov-banner to hidden
  • Loading branch information
mgwalker authored Feb 28, 2023
2 parents 51337cc + dcf46be commit ddedf99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
uswds-jekyll (5.4.0)
uswds-jekyll (5.5.0)
jekyll (>= 4.0, < 5)
jekyll-autoprefixer
mini_racer
Expand Down
5 changes: 5 additions & 0 deletions _includes/components/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
</div>
</header>
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
<script type="text/javascript">
// Hide the gov banner immediately rather than waiting for external JS
// sources to load and execute.
document.getElementById("gov-banner").setAttribute("hidden", "");
</script>
<div class="grid-row grid-gap-lg">
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-dot-gov.svg" role="img" alt="Dot gov">
Expand Down
2 changes: 1 addition & 1 deletion uswds-jekyll.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'uswds-jekyll'
s.version = '5.4.0'
s.version = '5.5.0'
s.authors = ['Shawn Allen', 'Tom Black', 'Brian Hurst', 'Scott Weber', 'Dan O. Williams']
s.email = ['[email protected]']

Expand Down

0 comments on commit ddedf99

Please sign in to comment.