@internetarchive/ia-topnav 1.3.5-alpha4 → 1.3.5-alpha6
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 +1 -0
- package/src/nav-search.js +1 -12
- package/src/primary-nav.js +3 -1
package/package.json
CHANGED
package/src/ia-topnav.js
CHANGED
|
@@ -305,6 +305,7 @@ export default class IATopNav extends LitElement {
|
|
|
305
305
|
<desktop-subnav
|
|
306
306
|
.baseHost=${this.baseHost}
|
|
307
307
|
.menuItems=${this.desktopSubnavMenuItems}
|
|
308
|
+
@focus=${this.closeMenus}
|
|
308
309
|
></desktop-subnav>
|
|
309
310
|
<div id="close-layer" class="${this.closeLayerClass}" @click=${this.closeMenus}></div>
|
|
310
311
|
`;
|
package/src/nav-search.js
CHANGED
|
@@ -99,19 +99,8 @@ class NavSearch extends TrackedElement {
|
|
|
99
99
|
placeholder="Search"
|
|
100
100
|
autocomplete="off"
|
|
101
101
|
tabindex="2"
|
|
102
|
-
@focus=${this.toggleSearchMenu}
|
|
103
|
-
@blur=${(e) => {
|
|
104
|
-
if (e.relatedTarget?.tagName !== 'SEARCH-MENU') {
|
|
105
|
-
this.dispatchEvent(new CustomEvent('menuToggled', {
|
|
106
|
-
detail: {
|
|
107
|
-
menuName: 'search'
|
|
108
|
-
},
|
|
109
|
-
composed: true,
|
|
110
|
-
bubbles: true,
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
}}
|
|
114
102
|
value=${this.searchQuery || ''}
|
|
103
|
+
@focus=${this.toggleSearchMenu}
|
|
115
104
|
/>
|
|
116
105
|
${this.searchInsideInput}
|
|
117
106
|
<button
|
package/src/primary-nav.js
CHANGED
|
@@ -157,7 +157,9 @@ class PrimaryNav extends TrackedElement {
|
|
|
157
157
|
return html`
|
|
158
158
|
<a href="${formatUrl('/create', this.baseHost)}"
|
|
159
159
|
class="upload"
|
|
160
|
-
tabindex="1"
|
|
160
|
+
tabindex="1"
|
|
161
|
+
@focus=${this.toggleMediaMenu}
|
|
162
|
+
>
|
|
161
163
|
${icons.upload}
|
|
162
164
|
<span>Upload</span>
|
|
163
165
|
</a>`;
|