@internetarchive/ia-topnav 1.2.2-alpha1 → 1.2.2-alpha3

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.2.2-alpha1",
3
+ "version": "1.2.2-alpha3",
4
4
  "description": "Top nav for Internet Archive",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "index.js",
@@ -1,5 +1,4 @@
1
1
  import { html, nothing } from 'https://offshoot.prod.archive.org/lit.js';
2
- import { ifDefined } from 'lit/directives/if-defined.js';
3
2
  import TrackedElement from './tracked-element.js';
4
3
  import dropdownMenuCSS from './styles/dropdown-menu.js';
5
4
  import formatUrl from './lib/formatUrl.js';
@@ -57,7 +56,7 @@ class DropdownMenu extends TrackedElement {
57
56
  const calloutText = this.config.callouts?.[link.title];
58
57
  return html`<a
59
58
  href="${formatUrl(link.url, this.baseHost)}"
60
- class="${ifDefined(link.class)}"
59
+ class="${link.class}"
61
60
  @click=${this.trackClick}
62
61
  data-event-click-tracking="${this.config.eventCategory}|Nav${link.analyticsEvent}"
63
62
  aria-label=${calloutText ? `New feature: ${link.title}` : nothing}>