@triptease/tt-navbar 0.0.48 → 0.0.49

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.48
2
+ * @triptease/tt-navbar v0.0.49
3
3
  */
4
4
 
5
5
  // src/urlMappings.ts
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-navbar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tt-navbar",
6
- "version": "0.0.48",
6
+ "version": "0.0.49",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
package/src/TtNavbar.ts CHANGED
@@ -136,11 +136,6 @@ export class TtNavbar extends LitElement {
136
136
 
137
137
  if (!bestMatch) {
138
138
  for (const link of this.allNavLinks) {
139
- link.classList.remove('current-page');
140
- if (link.hasAttribute('aria-current')) {
141
- link.attributes.removeNamedItem('aria-current');
142
- }
143
-
144
139
  const linkPath = new URL(link.href).pathname;
145
140
 
146
141
  if (currentPath.startsWith(linkPath)) {
@@ -152,6 +147,13 @@ export class TtNavbar extends LitElement {
152
147
  }
153
148
  }
154
149
 
150
+ for (const link of this.allNavLinks) {
151
+ link.classList.remove('current-page');
152
+ if (link.hasAttribute('aria-current')) {
153
+ link.attributes.removeNamedItem('aria-current');
154
+ }
155
+ }
156
+
155
157
  if (bestMatch) {
156
158
  bestMatch.classList.add('current-page');
157
159
  bestMatch.setAttribute('aria-current', 'page');
package/src/styles.ts CHANGED
@@ -25,7 +25,6 @@ export const styles = css`
25
25
  --nav-bar-width: fit-content;
26
26
  }
27
27
 
28
-
29
28
  * {
30
29
  box-sizing: border-box;
31
30
  }
@@ -261,41 +260,6 @@ export const styles = css`
261
260
  background-color: var(--color-surface-200);
262
261
  width: calc(100% - var(--nav-bar-width));
263
262
  height: 100%;
264
- transition-property: left, visibility;
265
- transition-duration: 700ms, 400ms;
266
- transition-timing-function: ease-out, ease-in;
267
-
268
- &.hidden {
269
- left: -100%;
270
- visibility: hidden;
271
- }
272
- }
273
-
274
- .link-page > .section {
275
- display: flex;
276
- flex-direction: column;
277
- gap: var(--space-scale-2);
278
- }
279
-
280
- .section > .links-container {
281
- display: grid;
282
- grid-template-columns: repeat(3, 1fr);
283
- gap: var(--space-scale-3);
284
- overflow-y: auto;
285
- height: 100%;
286
- }
287
-
288
- .visually-hidden {
289
- position: absolute;
290
- width: 1px;
291
- height: 1px;
292
- margin: -1px;
293
- padding: 0;
294
- border: 0;
295
- overflow: hidden;
296
- clip: rect(0 0 0 0);
297
- clip-path: inset(50%);
298
- white-space: nowrap;
299
263
  }
300
264
 
301
265
  .tooltip {
@@ -312,32 +276,6 @@ export const styles = css`
312
276
  font-weight: var(--font-weight-medium);
313
277
  }
314
278
 
315
- .auth-container {
316
- display: flex;
317
- align-items: center;
318
- justify-content: center;
319
- min-height: 100vh;
320
- }
321
-
322
- .error-container {
323
- padding: 4rem 1rem 1rem;
324
- max-width: 1280px;
325
- margin-left: auto;
326
- margin-right: auto;
327
- }
328
-
329
- .error-stack {
330
- width: 100%;
331
- padding: 1rem;
332
- overflow-x: auto;
333
- }
334
-
335
- .fullscreen-iframe {
336
- width: 100%;
337
- height: 100vh;
338
- border: 0;
339
- }
340
-
341
279
  .nav-toggle-button {
342
280
  position: relative;
343
281
  }
@@ -363,7 +301,9 @@ export const styles = css`
363
301
  --tt-combobox-color: var(--color-text-inverted-400);
364
302
  --tt-combobox-dropdown-color: var(--color-text-inverted-400);
365
303
  --tt-combobox-list-background-color: var(--color-surface-inverted-100);
366
- --tt-combobox-option-background-color-hover: var(--color-surface-inverted-200);
304
+ --tt-combobox-option-background-color-hover: var(
305
+ --color-surface-inverted-200
306
+ );
367
307
  --tt-combobox-placeholder-color: var(--color-text-inverted-300);
368
308
  --tt-combobox-background-color: var(--color-surface-inverted-100);
369
309
  --tt-combobox-hover-background-color: var(--color-surface-inverted-200);