@astrojs/starlight 0.34.0 → 0.34.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3140](https://github.com/withastro/starlight/pull/3140) [`f6eb1d5`](https://github.com/withastro/starlight/commit/f6eb1d5a776b007bec0f4b5fd7b160851daac9fc) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a text selection issue for heading with a clickable anchor link when using double or triple click to select text.
8
+
9
+ - [#3148](https://github.com/withastro/starlight/pull/3148) [`dc8b6d5`](https://github.com/withastro/starlight/commit/dc8b6d5561eb90be9d31396ed1dc8f8258c9cbf7) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a regression of the Starlight icon color when using the [`credits`](https://starlight.astro.build/reference/configuration/#credits) configuration option.
10
+
3
11
  ## 0.34.0
4
12
 
5
13
  ### Minor Changes
@@ -48,11 +48,14 @@ import { Icon } from '../components';
48
48
  text-decoration: none;
49
49
  color: var(--sl-color-gray-3);
50
50
  }
51
- .kudos :global(svg) {
52
- color: var(--sl-color-orange);
53
- }
54
51
  .kudos:hover {
55
52
  color: var(--sl-color-white);
56
53
  }
57
54
  }
55
+
56
+ @layer starlight.components {
57
+ .kudos :global(svg) {
58
+ color: var(--sl-color-orange);
59
+ }
60
+ }
58
61
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -88,6 +88,9 @@ how we do it.
88
88
  position: relative;
89
89
  /* Move the anchor link over the heading element’s end-of-line padding. */
90
90
  margin-inline-start: calc(-1 * var(--sl-anchor-icon-size));
91
+ /* Prevent double or triple clicks from potentially selecting the anchor link a11y text. */
92
+ -webkit-user-select: none;
93
+ user-select: none;
91
94
  }
92
95
 
93
96
  /* Increase clickable area for anchor links with a pseudo element that doesn’t impact layout. */