Skip to content

Commit

Permalink
🎨 #303 Figmaのデザインに合わせてテキストの色を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Aug 18, 2024
1 parent d651036 commit da109d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/_components/IconButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
type: 'button',
displayText: 'Button',
displayText: 'ログイン',

Check warning on line 15 in src/app/_components/IconButton.stories.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/IconButton.stories.tsx#L15

Added line #L15 was not covered by tests
},
};

Expand Down
6 changes: 4 additions & 2 deletions src/app/_components/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export const IconButton = ({
className={`${baseClasses} ${stateClasses} ${focusClasses}`}
isDisabled={isPending}

Check warning on line 28 in src/app/_components/IconButton.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/IconButton.tsx#L28

Added line #L28 was not covered by tests
>
{showGithubIcon != null && <FaGithub className="size-5" />}
<Text>{displayText}</Text>
{showGithubIcon != null && (
<FaGithub className="size-5 text-orange-900" />

Check warning on line 31 in src/app/_components/IconButton.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/IconButton.tsx#L30-L31

Added lines #L30 - L31 were not covered by tests
)}
<Text className="text-lg text-orange-900">{displayText}</Text>

Check warning on line 33 in src/app/_components/IconButton.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/_components/IconButton.tsx#L33

Added line #L33 was not covered by tests
</Button>
);
};

0 comments on commit da109d1

Please sign in to comment.