Skip to content

Commit a4b0769

Browse files
fix(swingset): keep connected account icons visible in dark mode (#10376)
1 parent d12fb71 commit a4b0769

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/swingset/src/stories/fixtures/user-profile-connected-accounts.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const connectedAccount: UserProfileConnectedAccount = {
1919
};
2020
const connectionProviders: UserProfileConnectionProvider[] = [
2121
{ id: 'google', provider: 'Google', iconUrl: 'https://img.clerk.com/static/google.svg' },
22-
{ id: 'apple', provider: 'Apple', iconUrl: 'https://img.clerk.com/static/apple.svg' },
22+
{ id: 'apple', provider: 'Apple', iconUrl: 'https://img.clerk.com/static/apple.svg', monochromeIcon: true },
2323
];
2424

2525
export function useConnectedAccountsFixture({
@@ -61,6 +61,7 @@ export function useConnectedAccountsFixture({
6161
id: provider.id,
6262
provider: provider.provider,
6363
iconUrl: provider.iconUrl,
64+
monochromeIcon: provider.monochromeIcon,
6465
identifier: 'test@example.com',
6566
status: 'connected',
6667
},

‎packages/swingset/src/stories/user-profile-connected-accounts-section.stories.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function ConnectionError() {
4747
id: 'apple',
4848
provider: 'Apple',
4949
iconUrl: 'https://img.clerk.com/static/apple.svg',
50+
monochromeIcon: true,
5051
connectError: 'Unable to connect. Please try again.',
5152
},
5253
],

0 commit comments

Comments
 (0)