Skip to content

Commit

Permalink
a better solution?
Browse files Browse the repository at this point in the history
  • Loading branch information
mgwalker committed Feb 28, 2023
1 parent 7df0921 commit d2613cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _includes/components/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
</button>
</div>
</header>
<div class="usa-banner__content usa-accordion__content" id="gov-banner" hidden>
<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

0 comments on commit d2613cb

Please sign in to comment.