Skip to content

Commit

Permalink
storybook: fix storybook issues from v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredh159 committed Nov 12, 2024
1 parent 207ab82 commit 1c77560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storybook/config/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import './index.css';
import '../../dash/app/src/css/SidebarNav.css';
import '../../dash/app/src/css/AddKeychainDrawer.css';
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import type { Preview, Decorator } from '@storybook/react';
Expand Down
3 changes: 3 additions & 0 deletions storybook/visual-tests/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ async function main(): Promise<void> {
* {
transition: none !important;
letter-spacing: -0.03em; /* sorta normalize CI fonts vs macOS */
}
.Drawer.translate-y-\\[100\\%\\] {
display: none !important; /* hide offscren drawer */
}`;
document.querySelector(`head`)?.appendChild(style);
},
Expand Down

0 comments on commit 1c77560

Please sign in to comment.