@swr-data-lab/components 2.32.0 → 2.32.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.
@@ -10,7 +10,10 @@ let { layout = 'one-up', align = 'left', showLogo = true, children } = $props();
10
10
  </Note>
11
11
  {/if}
12
12
  {#if showLogo}
13
- <Logotype />
13
+ <a href="https://www.swr.de/home/swr-data-lab-team-100.html" class="logo-link">
14
+ <span class="sr-only"> SWR Data Lab </span>
15
+ <Logotype />
16
+ </a>
14
17
  {/if}
15
18
  </footer>
16
19
 
@@ -21,6 +24,16 @@ let { layout = 'one-up', align = 'left', showLogo = true, children } = $props();
21
24
  width: 100%;
22
25
  }
23
26
 
27
+ .logo-link:hover :global(path), .logo-link:focus-visible :global(path) {
28
+ fill: var(--color-logoFillHover);
29
+ }
30
+
31
+ .sr-only {
32
+ font-size: 0;
33
+ position: absolute;
34
+ left: -9999px;
35
+ }
36
+
24
37
  .one-up {
25
38
  display: flex;
26
39
  flex-flow: column;
@@ -44,6 +44,7 @@ const rules = [
44
44
  --color-textSecondary: var(--textSecondary-light);
45
45
  --color-textSecondaryHover: var(--textSecondaryHover-light);
46
46
  --color-logoFill: var(--logoFill-light);
47
+ --color-logoFillHover: var(--logoFillHover-light);
47
48
  --color-pageFill: var(--pageFill-light);
48
49
  --color-surfaceFill: var(--surfaceFill-light);
49
50
  --color-surfaceHover: var(--surfaceHover-light);
@@ -52,6 +53,7 @@ const rules = [
52
53
  }
53
54
  .container[data-theme=dark] {
54
55
  --color-logoFill: var(--logoFill-dark);
56
+ --color-logoFillHover: var(--logoFillHover-dark);
55
57
  --color-pageFill: var(--pageFill-dark);
56
58
  --color-surfaceFill: var(--surfaceFill-dark);
57
59
  --color-surfaceBorder: var(--surfaceBorder-dark);
@@ -157,9 +157,13 @@ const semantics = {
157
157
  dark: '#b4b4b4'
158
158
  },
159
159
  logoFill: {
160
- light: shades.gray.light3,
160
+ light: shades.gray.light1,
161
161
  dark: shades.gray.base
162
162
  },
163
+ logoFillHover: {
164
+ light: shades.gray.base,
165
+ dark: shades.gray.light1
166
+ },
163
167
  surfaceFill: {
164
168
  dark: '#222325',
165
169
  light: '#ffffff'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swr-data-lab/components",
3
3
  "description": "SWR Data Lab component library",
4
- "version": "2.32.0",
4
+ "version": "2.32.2",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",