@internetarchive/ia-topnav 1.3.5-alpha16 → 1.3.5-alpha17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ia-topnav.js +4 -1
- package/src/search-menu.js +1 -1
- package/src/styles/primary-nav.js +1 -0
package/package.json
CHANGED
package/src/ia-topnav.js
CHANGED
|
@@ -91,7 +91,10 @@ export default class IATopNav extends LitElement {
|
|
|
91
91
|
firstUpdated() {
|
|
92
92
|
// close open menu on `esc` click
|
|
93
93
|
document.addEventListener('keydown', e => {
|
|
94
|
-
if (e.key === 'Escape')
|
|
94
|
+
if (e.key === 'Escape') {
|
|
95
|
+
this.openMenu = '';
|
|
96
|
+
this.mediaSliderOpen = false;
|
|
97
|
+
}
|
|
95
98
|
}, false);
|
|
96
99
|
}
|
|
97
100
|
|
package/src/search-menu.js
CHANGED
|
@@ -114,7 +114,7 @@ class SearchMenu extends TrackedElement {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
render() {
|
|
117
|
-
const searchMenuHidden = Boolean(!this.
|
|
117
|
+
const searchMenuHidden = Boolean(!this.openMenu).toString();
|
|
118
118
|
const searchMenuExpanded = Boolean(this.searchMenuOpen).toString();
|
|
119
119
|
|
|
120
120
|
if (this.hideSearch) {
|