Skip to content

Commit

Permalink
Refactored template to hide header when summary box component is
Browse files Browse the repository at this point in the history
displayed
  • Loading branch information
nick-mon1 committed Feb 29, 2024
1 parent 15033ed commit 5895a13
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions themes/digital.gov/layouts/partials/core/glossary.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
<aside
class="dg-glossary__container"
aria-describedby="dg-glossary__result"
aria-hidden="true"
>
<button title="Close glossary" class="dg-glossary__close" disabled>
<svg
class="usa-icon dg-icon dg-icon--large"
aria-hidden="true"
focusable="true"
>
<use xlink:href="{{ "/uswds/img/sprite.svg#close" | relURL }}"></use>
</svg>
</button>
{{ if isset .Params "glossary" }}
<aside
class="dg-glossary__container"
aria-describedby="dg-glossary__result"
aria-hidden="true"
>
<button title="Close glossary" class="dg-glossary__close" disabled>
<svg
class="usa-icon dg-icon dg-icon--large"
aria-hidden="true"
focusable="true"
>
<use xlink:href="{{ "/uswds/img/sprite.svg#close" | relURL }}"></use>
</svg>
</button>

<h2>Glossary</h2>
<label for="dg-glossary__search" class="usa-label">Search for a term:</label>
<input
id="dg-glossary__search"
class="dg-glossary__search usa-input"
type="text"
disabled
/>
<div class="dg-glossary__content" id="dg-glossary__result">
<ul class="dg-glossary__list add-list-reset"></ul>
</div>
</aside>
<h2>Glossary</h2>
<label for="dg-glossary__search" class="usa-label"
>Search for a term:</label
>
<input
id="dg-glossary__search"
class="dg-glossary__search usa-input"
type="text"
disabled
/>
<div class="dg-glossary__content" id="dg-glossary__result">
<ul class="dg-glossary__list add-list-reset"></ul>
</div>
</aside>
{{ end }}

0 comments on commit 5895a13

Please sign in to comment.