-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored template to hide header when summary box component is
displayed
- Loading branch information
Showing
1 changed file
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |