Skip to content

Commit

Permalink
fix v3 storybook logo (adobe#6914)
Browse files Browse the repository at this point in the history
  • Loading branch information
reidbarber committed Aug 21, 2024
1 parent 8f3c0ea commit a4d8b94
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .storybook/.parcelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
"@parcel/transformer-js",
"@parcel/transformer-react-refresh-wrap"
]
],
"raw:*": ["@parcel/transformer-raw"]
}
}
19 changes: 19 additions & 0 deletions .storybook/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions .storybook/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ export const parameters = {
source: {
type: 'code'
}
}
},
darkMode: {
light: {
brandTitle: 'React Spectrum',
brandImage: new URL('raw:logo.svg', import.meta.url).toString()
},
dark: {
brandTitle: 'React Spectrum',
brandImage: new URL('raw:logo-dark.svg', import.meta.url).toString()
}
},
};

export const decorators = [
Expand Down

0 comments on commit a4d8b94

Please sign in to comment.