@n1kname/components 0.17.1 → 0.17.2

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": "@n1kname/components",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,7 +25,7 @@
25
25
  "./match.css": "./src/match.css"
26
26
  },
27
27
  "dependencies": {
28
- "@n1kname/charts": "0.9.0"
28
+ "@n1kname/charts": "0.9.1"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "astro": "^7.4.4"
package/src/PageNav.astro CHANGED
@@ -2,8 +2,10 @@
2
2
  /**
3
3
  * The row of links across a site's pages, with the current page marked by a pill. The pill is
4
4
  * an empty shape behind the link's text, so that with page-change.css it can glide to the next
5
- * page's link while the words cross-fade, without stretching them. Without page-change.css, or
6
- * in a browser without cross-document view transitions, the page simply changes.
5
+ * page's link while the words cross-fade, without stretching them. A shape on the move is drawn
6
+ * above the page, so while it glides it is only its outline, and the links it passes stay
7
+ * readable; it fills in as it lands. Without page-change.css, or in a browser without
8
+ * cross-document view transitions, the page simply changes.
7
9
  *
8
10
  * One per page: the pill's transition name must be unique.
9
11
  */
@@ -88,6 +90,11 @@ const { items, label = 'Pages' } = Astro.props;
88
90
  border-radius: inherit;
89
91
  background: var(--c-surface);
90
92
  view-transition-name: page-nav-current;
93
+ transition: background-color var(--motion-fast) var(--ease-out);
94
+ }
95
+
96
+ :global(:root:active-view-transition) .pill {
97
+ background-color: transparent;
91
98
  }
92
99
 
93
100
  /* A fingertip needs more room than a pointer. */