@@ -12,7 +12,7 @@ import {
12
12
headingMoreButtonStyles
13
13
} from './styles/ParticipantContainer.styles' ;
14
14
import { ParticipantList , ParticipantListProps , ParticipantMenuItemsCallback } from '@internal/react-components' ;
15
- import { FocusZone , Stack , Text , useTheme } from '@fluentui/react' ;
15
+ import { FocusZone , Stack , Text , TooltipHost , TooltipOverflowMode , getId , useTheme } from '@fluentui/react' ;
16
16
import { DefaultButton , IContextualMenuProps } from '@fluentui/react' ;
17
17
import { AvatarPersona , AvatarPersonaDataCallback } from './AvatarPersona' ;
18
18
import { useId } from '@fluentui/react-hooks' ;
@@ -67,6 +67,7 @@ export const ParticipantListWithHeading = (props: {
67
67
const theme = useTheme ( ) ;
68
68
/* @conditional -compile-remove(total-participant-count) */
69
69
const totalParticipantCount = participantListProps . totalParticipantCount ;
70
+ const tooltipId : string = getId ( 'text-tooltip' ) ;
70
71
const subheadingStyleThemed = useMemo (
71
72
( ) => ( {
72
73
root : {
@@ -117,9 +118,13 @@ export const ParticipantListWithHeading = (props: {
117
118
allowActiveBorder = { true }
118
119
/>
119
120
{ options ?. text && (
120
- < Text nowrap = { true } styles = { displayNameStyles } >
121
- { options ?. text }
122
- </ Text >
121
+ < div style = { displayNameStyles } >
122
+ < TooltipHost content = { options ?. text } id = { tooltipId } overflowMode = { TooltipOverflowMode . Parent } >
123
+ < Text nowrap = { false } aria-labelledby = { tooltipId } >
124
+ { options ?. text }
125
+ </ Text >
126
+ </ TooltipHost >
127
+ </ div >
123
128
) }
124
129
</ >
125
130
) }
0 commit comments