File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ' @clerk/types ' : patch
4+ ---
5+
6+ Add element descriptor to the text element rendered within UserPreview component.
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([
215215 'userPreviewAvatarIcon' ,
216216 'userPreviewTextContainer' ,
217217 'userPreviewMainIdentifier' ,
218+ 'userPreviewMainIdentifierText' ,
218219 'userPreviewSecondaryIdentifier' ,
219220
220221 'organizationPreview' ,
Original file line number Diff line number Diff line change @@ -153,14 +153,15 @@ export const UserPreview = (props: UserPreviewProps) => {
153153 >
154154 { previewTitle && (
155155 < Text
156+ elementDescriptor = { descriptors . userPreviewMainIdentifierText }
157+ elementId = { descriptors . userPreviewMainIdentifierText . setId ( elementId ) }
156158 as = 'span'
157159 truncate
158160 sx = { { fontWeight : 'inherit' } }
159161 >
160162 { previewTitle }
161163 </ Text >
162164 ) }
163-
164165 { badge }
165166 </ Text >
166167
Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ export type ElementsConfig = {
347347 userPreviewAvatarIcon : WithOptions < UserPreviewId > ;
348348 userPreviewTextContainer : WithOptions < UserPreviewId > ;
349349 userPreviewMainIdentifier : WithOptions < UserPreviewId > ;
350+ userPreviewMainIdentifierText : WithOptions < UserPreviewId > ;
350351 userPreviewSecondaryIdentifier : WithOptions < UserPreviewId > ;
351352
352353 organizationPreview : WithOptions < OrganizationPreviewId > ;
You can’t perform that action at this time.
0 commit comments