@internetarchive/ia-topnav 1.3.5-alpha13 → 1.3.5-alpha15

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-alpha13",
3
+ "version": "1.3.5-alpha15",
4
4
  "description": "Top nav for Internet Archive",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "index.js",
@@ -99,7 +99,11 @@ class PrimaryNav extends TrackedElement {
99
99
  focusElement.focus();
100
100
  }
101
101
  } else if (this.currentTab.moveTo === 'next') {
102
- this.shadowRoot.querySelector('.user-menu').focus();
102
+ if (this.shadowRoot.querySelector('.user-menu')) {
103
+ this.shadowRoot.querySelector('.user-menu').focus();
104
+ } else {
105
+ this.shadowRoot.querySelector('login-button').shadowRoot.querySelectorAll('span a')[0]?.focus();
106
+ }
103
107
  }
104
108
  }
105
109
  }
@@ -42,6 +42,7 @@ export default css`
42
42
  span a {
43
43
  color: inherit;
44
44
  text-decoration: none;
45
+ outline: 0;
45
46
  }
46
47
 
47
48
  a:hover,
@@ -10,6 +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
14
  }
14
15
  .search-menu-inner {
15
16
  position: absolute;