Skip to content

Commit

Permalink
chore: tune override css var for story (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunory authored Dec 8, 2023
1 parent c14f7a0 commit 480a3ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion src/components/AsideHeader/__stories__/AsideHeader.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ MultipleTooltip.args = {
initialCompact: true,
};

const CustomThemeTemplate: StoryFn = (args) => <AsideHeaderShowcase {...args} />;
const CustomThemeTemplate: StoryFn = (args) => (
<React.Fragment>
<style>
{`.g-root {
--gn-aside-header-menu-item-icon-color: var(--g-color-text-primary);
}`}
</style>
<AsideHeaderShowcase {...args} />
</React.Fragment>
);
export const CustomTheme = CustomThemeTemplate.bind({});
CustomTheme.args = {
headerDecoration: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ body {
}

&__custom-background {
--gn-aside-header-menu-item-icon-color: var(--g-color-text-primary);

opacity: 75%;
}
}
Expand Down

0 comments on commit 480a3ab

Please sign in to comment.