Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const MembersSearch = ({ query, value, memberships, onSearchChange, onQue
<Icon
icon={MagnifyingGlass}
elementDescriptor={descriptors.organizationProfileMembersSearchInputIcon}
sx={t => ({ color: t.colors.$colorMutedForeground })}
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const PaymentSourceRow = ({ paymentSource }: { paymentSource: CommercePay
>
<Icon
icon={paymentSource.paymentMethod === 'card' ? CreditCard : GenericPayment}
sx={{ alignSelf: 'center' }}
sx={t => ({ alignSelf: 'center', color: t.colors.$colorMutedForeground })}
elementDescriptor={descriptors.paymentSourceRowIcon}
/>
<Text
Expand Down
12 changes: 12 additions & 0 deletions packages/clerk-js/src/ui/components/UserButton/SessionActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ export const MultiSessionActions = (props: MultiSessionActionsProps) => {

const { menutItems } = useUserButtonContext();

const commonActionSx: ThemableCssProp = t => ({
color: t.colors.$colorForeground,
});

const commonActionIconSx: ThemableCssProp = t => ({
color: t.colors.$colorMutedForeground,
});

const handleActionClick = async (route: MenuItem) => {
if (route?.path) {
await navigate(route.path);
Expand Down Expand Up @@ -182,6 +190,8 @@ export const MultiSessionActions = (props: MultiSessionActionsProps) => {
icon={CogFilled}
label={localizationKeys('userButton.action__manageAccount')}
onClick={handleManageAccountClicked}
sx={commonActionSx}
iconSx={commonActionIconSx}
focusRing
/>
<SmallAction
Expand All @@ -194,6 +204,8 @@ export const MultiSessionActions = (props: MultiSessionActionsProps) => {
icon={SignOut}
label={localizationKeys('userButton.action__signOut')}
onClick={handleSignOutSessionClicked(session)}
sx={commonActionSx}
iconSx={commonActionIconSx}
focusRing
/>
</Flex>
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/ui/elements/UserPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export const UserPreview = (props: UserPreviewProps) => {
truncate
as='span'
localizationKey={subtitle || identifier}
colorScheme='secondary'
/>
)}
</Flex>
Expand Down
Loading