@internetarchive/ia-topnav 1.3.5-alpha15 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/ia-topnav",
3
- "version": "1.3.5-alpha15",
3
+ "version": "1.3.5-alpha17",
4
4
  "description": "Top nav for Internet Archive",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "index.js",
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') this.closeMenus();
94
+ if (e.key === 'Escape') {
95
+ this.openMenu = '';
96
+ this.mediaSliderOpen = false;
97
+ }
95
98
  }, false);
96
99
  }
97
100
 
@@ -114,7 +114,7 @@ class SearchMenu extends TrackedElement {
114
114
  }
115
115
 
116
116
  render() {
117
- const searchMenuHidden = Boolean(!this.searchMenuOpen).toString();
117
+ const searchMenuHidden = Boolean(!this.openMenu).toString();
118
118
  const searchMenuExpanded = Boolean(this.searchMenuOpen).toString();
119
119
 
120
120
  if (this.hideSearch) {
@@ -157,6 +157,7 @@ export default css`
157
157
  .user-menu:focus {
158
158
  color: var(--linkHoverColor);
159
159
  outline: none;
160
+ img { box-shadow: 0 0 0 1px #fff; }
160
161
  }
161
162
 
162
163
  .user-menu.active {
@@ -10,7 +10,7 @@ export default css`
10
10
  outline-color: var(--linkColor);
11
11
  outline-width: 0.16rem;
12
12
  outline-style: auto;
13
- outline-offset: initial;
13
+ outline-offset: 2px;
14
14
  }
15
15
  .search-menu-inner {
16
16
  position: absolute;