Skip to content

Commit

Permalink
Merge pull request #921 from Eastern-Research-Group/feature/137_updat…
Browse files Browse the repository at this point in the history
…e-epa-template

Feature/137 update epa template
  • Loading branch information
cschwinderg authored Jan 8, 2024
2 parents 2499c32 + cc38edb commit b6bd79d
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/client/public/epa-template-files/images/close.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/client/public/epa-template-files/js/scripts.min.js

Large diffs are not rendered by default.

25 changes: 24 additions & 1 deletion app/client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@
background-color: inherit;
}

.l-header {
z-index: 901;
}

.exit-disclaimer {
background-color: #aeb0b5;
border-radius: 3px;
Expand Down Expand Up @@ -891,7 +895,7 @@
Menu
</button>
</div>
<div class="l-header__search" id="header-search-drawer">
<div class="l-header__search" id="header-search-drawer" hidden="true">
<form
class="usa-search usa-search--small usa-search--epa"
method="get"
Expand Down Expand Up @@ -1300,6 +1304,25 @@ <h2>Follow.</h2>
<script src="%PUBLIC_URL%/epa-template-files/js/once.min.js"></script>
<script src="%PUBLIC_URL%/epa-template-files/js/common.min.js"></script>
<script src="%PUBLIC_URL%/epa-template-files/js/scripts.min.js"></script>
<!-- EPA template script overrides-->
<script>
const searchButton = document.querySelector(
"[aria-controls='header-search-drawer']",
);
if (searchButton) {
searchButton.addEventListener('click', () => {
const expanded = searchButton.ariaExpanded === 'true';
searchButton.ariaExpanded = !expanded;
const drawer = document.querySelector('#header-search-drawer');
if (expanded) {
drawer.setAttribute('hidden', true);
} else {
drawer.removeAttribute('hidden');
}
});
}
</script>
<!-- End EPA template script overrides-->

<style>
.menu--main .menu__link,
Expand Down
21 changes: 20 additions & 1 deletion app/server/app/public/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
Menu
</button>
</div>
<div class="l-header__search" id="header-search-drawer">
<div class="l-header__search" id="header-search-drawer" hidden="true">
<form
class="usa-search usa-search--small usa-search--epa"
method="get"
Expand Down Expand Up @@ -895,6 +895,25 @@ <h2>Follow.</h2>
<script src="./epa-template-files/js/once.min.js"></script>
<script src="./epa-template-files/js/common.min.js"></script>
<script src="./epa-template-files/js/scripts.min.js"></script>
<!-- EPA template script overrides-->
<script>
const searchButton = document.querySelector(
"[aria-controls='header-search-drawer']",
);
if (searchButton) {
searchButton.addEventListener('click', () => {
const expanded = searchButton.ariaExpanded === 'true';
searchButton.ariaExpanded = !expanded;
const drawer = document.querySelector('#header-search-drawer');
if (expanded) {
drawer.setAttribute('hidden', true);
} else {
drawer.removeAttribute('hidden');
}
});
}
</script>
<!-- End EPA template script overrides-->

<style>
.menu--main .menu__link,
Expand Down
21 changes: 20 additions & 1 deletion app/server/app/public/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
Menu
</button>
</div>
<div class="l-header__search" id="header-search-drawer">
<div class="l-header__search" id="header-search-drawer" hidden="true">
<form
class="usa-search usa-search--small usa-search--epa"
method="get"
Expand Down Expand Up @@ -901,6 +901,25 @@ <h2>Follow.</h2>
<script src="./epa-template-files/js/once.min.js"></script>
<script src="./epa-template-files/js/common.min.js"></script>
<script src="./epa-template-files/js/scripts.min.js"></script>
<!-- EPA template script overrides-->
<script>
const searchButton = document.querySelector(
"[aria-controls='header-search-drawer']",
);
if (searchButton) {
searchButton.addEventListener('click', () => {
const expanded = searchButton.ariaExpanded === 'true';
searchButton.ariaExpanded = !expanded;
const drawer = document.querySelector('#header-search-drawer');
if (expanded) {
drawer.setAttribute('hidden', true);
} else {
drawer.removeAttribute('hidden');
}
});
}
</script>
<!-- End EPA template script overrides-->

<style>
.menu--main .menu__link,
Expand Down
1 change: 0 additions & 1 deletion app/server/app/public/epa-template-files/images/close.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/server/app/public/epa-template-files/js/scripts.min.js

Large diffs are not rendered by default.

0 comments on commit b6bd79d

Please sign in to comment.