@@ -12,7 +12,7 @@ import {
1212 headingMoreButtonStyles
1313} from './styles/ParticipantContainer.styles' ;
1414import { 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' ;
1616import { DefaultButton , IContextualMenuProps } from '@fluentui/react' ;
1717import { AvatarPersona , AvatarPersonaDataCallback } from './AvatarPersona' ;
1818import { useId } from '@fluentui/react-hooks' ;
@@ -67,6 +67,7 @@ export const ParticipantListWithHeading = (props: {
6767 const theme = useTheme ( ) ;
6868 /* @conditional -compile-remove(total-participant-count) */
6969 const totalParticipantCount = participantListProps . totalParticipantCount ;
70+ const tooltipId : string = getId ( 'text-tooltip' ) ;
7071 const subheadingStyleThemed = useMemo (
7172 ( ) => ( {
7273 root : {
@@ -117,9 +118,13 @@ export const ParticipantListWithHeading = (props: {
117118 allowActiveBorder = { true }
118119 />
119120 { 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 >
123128 ) }
124129 </ >
125130 ) }
0 commit comments