Skip to content

Commit bddb828

Browse files
refactor(clerk-js): Update text/icon color usages pt1 (#6697)
1 parent 7926f7f commit bddb828

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.changeset/petite-donkeys-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Update search icon, payment source icon, and user preview identifier colors.

packages/clerk-js/src/ui/components/OrganizationProfile/MembersSearch.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const MembersSearch = ({ query, value, memberships, onSearchChange, onQue
102102
<Icon
103103
icon={MagnifyingGlass}
104104
elementDescriptor={descriptors.organizationProfileMembersSearchInputIcon}
105+
sx={t => ({ color: t.colors.$colorMutedForeground })}
105106
/>
106107
)
107108
}

packages/clerk-js/src/ui/components/PaymentSources/PaymentSourceRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const PaymentSourceRow = ({ paymentSource }: { paymentSource: CommercePay
1313
>
1414
<Icon
1515
icon={paymentSource.paymentMethod === 'card' ? CreditCard : GenericPayment}
16-
sx={{ alignSelf: 'center' }}
16+
sx={t => ({ alignSelf: 'center', color: t.colors.$colorMutedForeground })}
1717
elementDescriptor={descriptors.paymentSourceRowIcon}
1818
/>
1919
<Text

packages/clerk-js/src/ui/elements/UserPreview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export const UserPreview = (props: UserPreviewProps) => {
170170
truncate
171171
as='span'
172172
localizationKey={subtitle || identifier}
173+
colorScheme='secondary'
173174
/>
174175
)}
175176
</Flex>

0 commit comments

Comments
 (0)