Skip to content

Commit a4d8b94

Browse files
authored
fix v3 storybook logo (#6914)
1 parent 8f3c0ea commit a4d8b94

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

.storybook/.parcelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
77
"@parcel/transformer-js",
88
"@parcel/transformer-react-refresh-wrap"
9-
]
9+
],
10+
"raw:*": ["@parcel/transformer-raw"]
1011
}
1112
}

.storybook/logo-dark.svg

Lines changed: 19 additions & 0 deletions
Loading

.storybook/logo.svg

Lines changed: 19 additions & 0 deletions
Loading

.storybook/preview.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,17 @@ export const parameters = {
3434
source: {
3535
type: 'code'
3636
}
37-
}
37+
},
38+
darkMode: {
39+
light: {
40+
brandTitle: 'React Spectrum',
41+
brandImage: new URL('raw:logo.svg', import.meta.url).toString()
42+
},
43+
dark: {
44+
brandTitle: 'React Spectrum',
45+
brandImage: new URL('raw:logo-dark.svg', import.meta.url).toString()
46+
}
47+
},
3848
};
3949

4050
export const decorators = [

0 commit comments

Comments
 (0)