-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Shows the guide glossary terms in a sidebar.
- Loading branch information
Showing
5 changed files
with
40 additions
and
6 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
27 changes: 27 additions & 0 deletions
27
...ustom/digital_gov/templates/views/views-view--glossary-accordion--guide-overlay.html.twig
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<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="/{{ active_theme_path() }}/static/uswds/img/sprite.svg#close"></use> | ||
</svg> | ||
</button> | ||
{# /* Used as a hook in `summary-box.js`. #} | ||
<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"> | ||
{{ rows}} | ||
</div> | ||
</aside> |
1 change: 1 addition & 0 deletions
1
...s/views/views-view-field--glossary-accordion--guide-overlay--description--value.html.twig
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<div id="glossary-term-{{ row.index }}" class="dg-glossary__definition" hidden="">{{ output }}</div> |
5 changes: 5 additions & 0 deletions
5
...l_gov/templates/views/views-view-field--glossary-accordion--guide-overlay--name.html.twig
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<button class="dg-glossary__term" aria-controls="glossary-term-0" aria-expanded="false">{{ output }}</button> | ||
<svg id="glossary-term-{{ row.index }}-icon" class="dg-glossary__icon usa-icon dg-icon dg-icon--large" aria-hidden="true" focusable="false" role="img"> | ||
<use xlink:href="/{{ active_theme_path() }}/static/uswds/img/sprite.svg#expand_more"></use> | ||
</svg> | ||
|
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