Skip to content

Commit

Permalink
Merge branch 'main' into action-fix-app-auth-package
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Apr 23, 2024
2 parents 8a6f2b2 + 8d8895c commit 9dc5785
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
id: deployment
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: ${{needs.deploy.outputs.deployment_url}}/storybook
environment-url: ${{needs.deploy.outputs.deployment_url}}storybook
environment: storybook-preview
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: ${{needs.deploy.outputs.deployment_url}}/storybook
environment-url: ${{needs.deploy.outputs.deployment_url}}storybook
state: 'success'
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: '${{ secrets.GITHUB_TOKEN }}'
environment-url: ${{needs.deploy.outputs.deployment_url}}/storybook
environment-url: ${{needs.deploy.outputs.deployment_url}}storybook
state: 'failure'
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
3 changes: 3 additions & 0 deletions docs/storybook/scripts/build-storybook
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ mkdir -p ../public/storybook

# Remove manager-head after build to not interfere with dev builds
rm .storybook/manager-head.html

# create file to redirect to storybook
echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=/storybook/"></head></html>' > ../public/index.html
28 changes: 14 additions & 14 deletions docs/storybook/stories/Color/Base/Scales.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export default {
const bgColors = [
'base-color-black',
'base-color-white',
'base-color-gray-0',
'base-color-gray-1',
'base-color-gray-2',
'base-color-gray-3',
'base-color-gray-4',
'base-color-gray-5',
'base-color-gray-6',
'base-color-gray-7',
'base-color-gray-8',
'base-color-gray-9',
'base-color-neutral-0',
'base-color-neutral-1',
'base-color-neutral-2',
'base-color-neutral-3',
'base-color-neutral-4',
'base-color-neutral-5',
'base-color-neutral-6',
'base-color-neutral-7',
'base-color-neutral-8',
'base-color-neutral-9',
'base-color-blue-0',
'base-color-blue-1',
'base-color-blue-2',
Expand Down Expand Up @@ -106,7 +106,7 @@ const bgColors = [
export const AllScales = () => {
return (
<div className="ColorScale--grid">
<Gray />
<Neutral />
<Blue />

<Green />
Expand All @@ -126,11 +126,11 @@ export const AllScales = () => {
}
AllScales.tags = ['includeSnapshot']

export const Gray = () => {
const grayColors = bgColors.filter(color => color.includes('gray-'))
export const Neutral = () => {
const neutralColors = bgColors.filter(color => color.includes('neutral-'))
return (
<div>
{grayColors.map(color => (
{neutralColors.map(color => (
<ColorScale color={color} key={color} />
))}
</div>
Expand Down

0 comments on commit 9dc5785

Please sign in to comment.