diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5d88dce..a5785d9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,9 +40,9 @@ jobs: # run: ./ci/test-sb.sh # shell: bash - - name: backend integration test - run: ./ci/test-be.sh - shell: sh + # - name: backend integration test + # run: ./ci/test-be.sh + # shell: sh # - name: run end-to-end test # run: ./ci/test-e2e.sh @@ -64,4 +64,4 @@ jobs: with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }} - storybookBuildDir: pkgs/ui/storybook-static + storybookBuildDir: ./pkgs/ui/storybook-static diff --git a/pkgs/ui/src/components/Dialog.stories.tsx b/pkgs/ui/src/components/Dialog.stories.tsx index 4c3448a..e9d1ce5 100644 --- a/pkgs/ui/src/components/Dialog.stories.tsx +++ b/pkgs/ui/src/components/Dialog.stories.tsx @@ -12,6 +12,15 @@ export default { export const Default = { render: () => { - return hi} trigger={} /> + return ( + hi} + trigger={ + + } + /> + ) }, } satisfies SB.Story diff --git a/pkgs/ui/src/components/Text.tsx b/pkgs/ui/src/components/Text.tsx index c045e39..6f59f48 100644 --- a/pkgs/ui/src/components/Text.tsx +++ b/pkgs/ui/src/components/Text.tsx @@ -13,7 +13,7 @@ export const fontSizes = { lg: tw`text-[1.1875rem] font-[600] leading-[1.8125rem]`, h2: tw`text-[1.5rem] font-[400] leading-[2rem]`, h1: tw`text-[2rem] font-[600] leading-[2rem]`, - subtle: tw`text-gray-600 dark:text-gray-400`, + subtle: tw`text-gray-600 dark:text-gray-300/80`, null: tw``, } diff --git a/pkgs/ui/src/components/Tooltip.stories.tsx b/pkgs/ui/src/components/Tooltip.stories.tsx index f6bdbd9..b86337c 100644 --- a/pkgs/ui/src/components/Tooltip.stories.tsx +++ b/pkgs/ui/src/components/Tooltip.stories.tsx @@ -19,7 +19,7 @@ export const Base = {} as SB.Story export const Hovered = { play: async ({ canvasElement }) => { - const elem = within(canvasElement).getByRole('button') + const elem = within(canvasElement).getByRole('tooltip') elem.focus() }, } as SB.Story diff --git a/pkgs/ui/src/components/forms/_Field.tsx b/pkgs/ui/src/components/forms/_Field.tsx index fcb98de..7283424 100644 --- a/pkgs/ui/src/components/forms/_Field.tsx +++ b/pkgs/ui/src/components/forms/_Field.tsx @@ -105,7 +105,7 @@ export function FieldError(props: JSX.IntrinsicAttributes) { const { meta } = useFieldContext() return ( -
+
{meta.touched && meta.error}
) @@ -170,7 +170,7 @@ export function Title() { { // eslint-disable-next-line quotes ["&[data-required='true']::after"]: css` - ${tw`text-red-600 dark:text-red-400`}; + ${tw`text-red-600 dark:text-red-300`}; content: ' *'; `, }, @@ -182,7 +182,7 @@ export function Title() { { [`#${id}:focus-within &, #${id}.value &`]: tw`translate-y-0 text-xs `, [`#${id}:focus-within &`]: tw`text-blue-600 dark:text-blue-400`, - [`#${id}.error &`]: tw`text-red-600 dark:text-red-400`, + [`#${id}.error &`]: tw`text-red-600 dark:text-red-300`, }, ]} data-required={req}