Skip to content

Commit

Permalink
chore: tune custom theme story
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunory committed Dec 21, 2023
1 parent 3965243 commit b083f2d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Binary file added .storybook/assets/custom-theme-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {StorybookConfig} from '@storybook/react-webpack5';

const config: StorybookConfig = {
staticDirs: ['./assets'],
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(ts|tsx)'],
addons: [
'@storybook/addon-links',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ const CustomThemeTemplate: StoryFn = (args) => (
export const CustomTheme = CustomThemeTemplate.bind({});
CustomTheme.args = {
headerDecoration: false,
customBackground: (
<img src="https://cdn.stocksnap.io/img-thumbs/960w/blue-night_DBUU6N5YUY.jpg" />
),
customBackground: <img src="custom-theme-background.png" />,
customBackgroundClassName: 'aside-header-showcase__custom-background',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ body {
}

&__custom-background {
opacity: 75%;
width: 100%;

opacity: 70%;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {EMPTY_CONTEXT_VALUE} from '../../AsideHeader/__stories__/moc';
import './FooterItemShowcase.scss';

export default {
title: 'Components/AsideHeader/FooterItem',
title: 'Components/FooterItem',
component: FooterItem,
decorators: [
(DecoratedStory, context) => {
Expand Down

0 comments on commit b083f2d

Please sign in to comment.