-
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.
- [x] tested when glossary is not enabled - [x] tested when glossary is enabled with summary box - [x] updated glossary.html to set header class for tagetting to hide in summary-box.js - [x] set conditional to hide/display glossary.html partial based on glossary field set in parent _index.md
- Loading branch information
Showing
4 changed files
with
33 additions
and
34 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
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
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,31 +1,27 @@ | ||
{{ if ne .Params.glossary nil }} | ||
<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 | ||
<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" | ||
> | ||
<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 }} | ||
<use xlink:href="{{ "/uswds/img/sprite.svg#close" | relURL }}"></use> | ||
</svg> | ||
</button> | ||
|
||
<h2 class="dg-glossary__header">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> |
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