Skip to content

Commit ddedf99

Browse files
authored
Merge pull request #257 from 18F/256/gov-banner-hidden
Default the gov-banner to hidden
2 parents 51337cc + dcf46be commit ddedf99

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
uswds-jekyll (5.4.0)
4+
uswds-jekyll (5.5.0)
55
jekyll (>= 4.0, < 5)
66
jekyll-autoprefixer
77
mini_racer

_includes/components/banner.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
</div>
1717
</header>
1818
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
19+
<script type="text/javascript">
20+
// Hide the gov banner immediately rather than waiting for external JS
21+
// sources to load and execute.
22+
document.getElementById("gov-banner").setAttribute("hidden", "");
23+
</script>
1924
<div class="grid-row grid-gap-lg">
2025
<div class="usa-banner__guidance tablet:grid-col-6">
2126
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-dot-gov.svg" role="img" alt="Dot gov">

uswds-jekyll.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

0 commit comments

Comments
 (0)