Skip to content

Commit

Permalink
Fix/relative css imports (#432)
Browse files Browse the repository at this point in the history
* fix: relative css file imports

* chore: revert previous unused fixes

* fix: relative path to logo in storybook theme
  • Loading branch information
ergusto authored Apr 17, 2024
1 parent d2b0c88 commit e8bbd3e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- run: npm ci
- run: BASE_PATH=/quantum npm run build-storybook
- run: npm run build-storybook
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
Expand Down
2 changes: 0 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const config: StorybookConfig = {
}
}

config.base = process.env.BASE_PATH || config.base

return config
}
}
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet" />
<link href="/manager.css" rel="stylesheet" />
<link href="./manager.css" rel="stylesheet" />
<style>
iframe#storybook-preview-iframe {
background-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet" />
<link href="/preview.css" rel="stylesheet" />
<link href="./preview.css" rel="stylesheet" />
8 changes: 4 additions & 4 deletions .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { create } from '@storybook/theming/create';
import colors from '../src/colors';
import { create } from '@storybook/theming/create'
import colors from '../src/colors'

export default create({
base: 'light',
brandTitle: 'Quantum',
brandImage: '/quantum-logo-light.png',
brandImage: './quantum-logo-light.png',

fontBase: 'Inter',

Expand Down Expand Up @@ -34,4 +34,4 @@ export default create({
inputBorder: '#97A1B8',
inputTextColor: '#111928',
inputBorderRadius: 2
});
})

0 comments on commit e8bbd3e

Please sign in to comment.