Skip to content

Commit

Permalink
chore: import blueprint-select css in storybook and app setups
Browse files Browse the repository at this point in the history
  • Loading branch information
stropitek committed Jan 24, 2025
1 parent 01d1e95 commit 49becb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { RootLayoutDecorator } from '../stories/utils.js';
import '../styles/storybook-globals.css';
import '../styles/preflight.css';
import '@blueprintjs/core/lib/css/blueprint.css';
import '@blueprintjs/select/lib/css/blueprint-select.css';
import '@blueprintjs/icons/lib/css/blueprint-icons.css';

const preview: Preview = {
Expand Down
1 change: 1 addition & 0 deletions src/pages/demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import MainLayout from './MainLayout.js';

import '@blueprintjs/core/lib/css/blueprint.css';
import '@blueprintjs/select/lib/css/blueprint-select.css';
import '@blueprintjs/icons/lib/css/blueprint-icons.css';
import { queryClient } from './query_client.js';

Expand Down
12 changes: 7 additions & 5 deletions stories/components/select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ export function WithCustomStyle() {
);
}

const Row = styled.div({
display: 'flex',
flexDirection: 'row',
});
const Row = styled.div`
display: flex;
flex-direction: row;
align-items: center;
gap: 5px;
`;

const Tag = styled.div({
borderRadius: '25px',
Expand All @@ -417,7 +419,7 @@ export function WithCustomRenderItem() {
>
<span>{label.charAt(0)}</span>
</Tag>
<span style={{ flex: 1, padding: '0 5px' }}>{label}</span>
<span style={{ flex: 1 }}>{label}</span>
<Tag
style={{
border: `${color} 1px solid`,
Expand Down

0 comments on commit 49becb5

Please sign in to comment.