diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index d9f9719f..99e97e92 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 24
+ node-version: 24.15.0
- run: npm ci --workspace=components --include=dev
- run: npm run sync --workspace=components
- run: npm ci --workspace=mock-sveltekit
diff --git a/.github/workflows/test-storybook.yml b/.github/workflows/test-storybook.yml
index 5e500bf1..93110406 100644
--- a/.github/workflows/test-storybook.yml
+++ b/.github/workflows/test-storybook.yml
@@ -14,14 +14,15 @@ on:
jobs:
run-tests:
runs-on: ubuntu-latest
+ timeout-minutes: 10
defaults:
run:
working-directory: ./components
steps:
- - uses: actions/checkout@v6
- - uses: actions/setup-node@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
- node-version: 24
+ node-version: 24.15.0
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run sync
diff --git a/components/package.json b/components/package.json
index 70a87334..1da04504 100644
--- a/components/package.json
+++ b/components/package.json
@@ -64,7 +64,7 @@
"layercake": "^10.0.2",
"mdx-mermaid": "2.0.3",
"nodemon": "^3.1.11",
- "playwright": "1.58.1",
+ "playwright": "1.60.0",
"publint": "0.3.17",
"sass": "1.93.2",
"sass-embedded": "1.97.3",
diff --git a/components/src/DesignTokens/DesignTokens.svelte b/components/src/DesignTokens/DesignTokens.svelte
index d8f32d23..69ba4ac9 100644
--- a/components/src/DesignTokens/DesignTokens.svelte
+++ b/components/src/DesignTokens/DesignTokens.svelte
@@ -62,6 +62,7 @@
--color-pageFill: var(--pageFill-light);
--color-surfaceFill: var(--surfaceFill-light);
--color-surfaceHover: var(--surfaceHover-light);
+ --color-raisedSurfaceFill: var(--raisedSurfaceFill-light);
--color-surfaceBorder: var(--surfaceBorder-light);
--color-dropShadow: var(--dropShadow-light);
@@ -70,6 +71,7 @@
--color-logoFillHover: var(--logoFillHover-dark);
--color-pageFill: var(--pageFill-dark);
--color-surfaceFill: var(--surfaceFill-dark);
+ --color-raisedSurfaceFill: var(--raisedSurfaceFill-dark);
--color-surfaceBorder: var(--surfaceBorder-dark);
--color-surfaceHover: var(--surfaceHover-dark);
--color-textPrimary: var(--textPrimary-dark);
diff --git a/components/src/DesignTokens/Tokens.ts b/components/src/DesignTokens/Tokens.ts
index 173aef18..5024943e 100644
--- a/components/src/DesignTokens/Tokens.ts
+++ b/components/src/DesignTokens/Tokens.ts
@@ -179,19 +179,19 @@ const semantics: ColourMap = {
},
surfaceFill: {
dark: '#222325',
- light: '#ffffff'
+ light: '#fbfbfb'
},
surfaceHover: {
- dark: '#121212',
- light: '#eee'
+ dark: '#272830',
+ light: '#fdfdfd'
},
raisedSurfaceFill: {
dark: '#393a3b',
light: '#ffffff'
},
surfaceBorder: {
- dark: 'rgba(255,255,255,.15)',
- light: shades.gray.light3
+ dark: shades.gray.dark2,
+ light: shades.gray.light2
},
pageFill: {
dark: '#0C0C0C',
diff --git a/components/src/Switcher/Switcher.stories.svelte b/components/src/Switcher/Switcher.stories.svelte
index c7a6a7ae..58b19a2e 100644
--- a/components/src/Switcher/Switcher.stories.svelte
+++ b/components/src/Switcher/Switcher.stories.svelte
@@ -6,27 +6,50 @@
const { Story } = defineMeta({
title: 'Form/Switcher',
- component: Switcher
+ component: Switcher,
+ parameters: {
+ layout: 'fullscreen'
+ }
});
const onChangeSpy = fn();
+ const dwIds = ['GjkbO', 'R5jey'];
+ let selectedDw = $state(dwIds[0]);
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
@@ -48,12 +71,14 @@
}}
>
-
+
+
+
@@ -69,12 +94,14 @@
}}
>
-
+
+
+
@@ -90,12 +117,14 @@
}}
>
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+ {#each dwIds as id}
+
+

+
+ {/each}
+
+
+
+
+
+
diff --git a/components/src/Switcher/Switcher.svelte b/components/src/Switcher/Switcher.svelte
index e114fced..3073b8fd 100644
--- a/components/src/Switcher/Switcher.svelte
+++ b/components/src/Switcher/Switcher.svelte
@@ -26,6 +26,7 @@
* The currently-selected option (bindable)
*/
value: string | null;
+ align?: 'left' | 'center';
/**
* Fired when the selected value changes (Prefer `value` if possible)
*/
@@ -38,6 +39,7 @@
size = 'default',
hideLabel = false,
layout = 'auto',
+ align = 'left',
value = $bindable(null),
onchange
}: SwitcherProps = $props();
@@ -50,27 +52,22 @@
}
-