@@ -33,7 +33,6 @@ import RoomHeaderButtons from "../right_panel/LegacyRoomHeaderButtons";
33
33
import E2EIcon from "./E2EIcon" ;
34
34
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar" ;
35
35
import AccessibleButton , { ButtonEvent } from "../elements/AccessibleButton" ;
36
- import AccessibleTooltipButton from "../elements/AccessibleTooltipButton" ;
37
36
import RoomTopic from "../elements/RoomTopic" ;
38
37
import RoomName from "../elements/RoomName" ;
39
38
import { E2EStatus } from "../../../utils/ShieldUtils" ;
@@ -68,7 +67,6 @@ import IconizedContextMenu, {
68
67
} from "../context_menus/IconizedContextMenu" ;
69
68
import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload" ;
70
69
import { SessionDuration } from "../voip/CallDuration" ;
71
- import { Alignment } from "../elements/Tooltip" ;
72
70
import RoomCallBanner from "../beacon/RoomCallBanner" ;
73
71
import { shouldShowComponent } from "../../../customisations/helpers/UIComponents" ;
74
72
import { UIComponent } from "../../../settings/UIFeature" ;
@@ -111,12 +109,12 @@ const VoiceCallButton: FC<VoiceCallButtonProps> = ({ room, busy, setBusy, behavi
111
109
} , [ behavior , room , setBusy ] ) ;
112
110
113
111
return (
114
- < AccessibleTooltipButton
112
+ < AccessibleButton
115
113
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_voiceCallButton"
116
114
onClick = { onClick }
117
- title = { _t ( "voip|voice_call" ) }
118
- tooltip = { tooltip ?? _t ( "voip|voice_call" ) }
119
- alignment = { Alignment . Bottom }
115
+ aria-label = { _t ( "voip|voice_call" ) }
116
+ title = { tooltip ?? _t ( "voip|voice_call" ) }
117
+ placement = "bottom"
120
118
disabled = { disabled || busy }
121
119
/>
122
120
) ;
@@ -237,13 +235,13 @@ const VideoCallButton: FC<VideoCallButtonProps> = ({ room, busy, setBusy, behavi
237
235
238
236
return (
239
237
< >
240
- < AccessibleTooltipButton
238
+ < AccessibleButton
241
239
ref = { buttonRef }
242
240
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_videoCallButton"
243
241
onClick = { onClick }
244
- title = { _t ( "voip|video_call" ) }
245
- tooltip = { tooltip ?? _t ( "voip|video_call" ) }
246
- alignment = { Alignment . Bottom }
242
+ aria-label = { _t ( "voip|video_call" ) }
243
+ title = { tooltip ?? _t ( "voip|video_call" ) }
244
+ placement = "bottom"
247
245
disabled = { disabled || busy }
248
246
/>
249
247
{ menu }
@@ -442,15 +440,15 @@ const CallLayoutSelector: FC<CallLayoutSelectorProps> = ({ call }) => {
442
440
443
441
return (
444
442
< >
445
- < AccessibleTooltipButton
443
+ < AccessibleButton
446
444
ref = { buttonRef }
447
445
className = { classNames ( "mx_LegacyRoomHeader_button" , {
448
446
"mx_LegacyRoomHeader_layoutButton--freedom" : layout === Layout . Tile ,
449
447
"mx_LegacyRoomHeader_layoutButton--spotlight" : layout === Layout . Spotlight ,
450
448
} ) }
451
449
onClick = { onClick }
452
450
title = { _t ( "room|header|video_call_ec_change_layout" ) }
453
- alignment = { Alignment . Bottom }
451
+ placement = "bottom"
454
452
key = "layout"
455
453
/>
456
454
{ menu }
@@ -600,19 +598,19 @@ export default class RoomHeader extends React.Component<IProps, IState> {
600
598
601
599
if ( ! this . props . viewingCall && this . props . onForgetClick ) {
602
600
startButtons . push (
603
- < AccessibleTooltipButton
601
+ < AccessibleButton
604
602
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_forgetButton"
605
603
onClick = { this . props . onForgetClick }
606
604
title = { _t ( "room|header|forget_room_button" ) }
607
- alignment = { Alignment . Bottom }
605
+ placement = "bottom"
608
606
key = "forget"
609
607
/> ,
610
608
) ;
611
609
}
612
610
613
611
if ( ! this . props . viewingCall && this . props . onAppsClick ) {
614
612
startButtons . push (
615
- < AccessibleTooltipButton
613
+ < AccessibleButton
616
614
className = { classNames ( "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_appsButton" , {
617
615
mx_LegacyRoomHeader_appsButton_highlight : this . props . appsShown ,
618
616
} ) }
@@ -623,31 +621,31 @@ export default class RoomHeader extends React.Component<IProps, IState> {
623
621
: _t ( "room|header|show_widgets_button" )
624
622
}
625
623
aria-checked = { this . props . appsShown }
626
- alignment = { Alignment . Bottom }
624
+ placement = "bottom"
627
625
key = "apps"
628
626
/> ,
629
627
) ;
630
628
}
631
629
632
630
if ( ! this . props . viewingCall && this . props . onSearchClick && this . props . inRoom ) {
633
631
startButtons . push (
634
- < AccessibleTooltipButton
632
+ < AccessibleButton
635
633
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_searchButton"
636
634
onClick = { this . props . onSearchClick }
637
635
title = { _t ( "action|search" ) }
638
- alignment = { Alignment . Bottom }
636
+ placement = "bottom"
639
637
key = "search"
640
638
/> ,
641
639
) ;
642
640
}
643
641
644
642
if ( this . props . onInviteClick && ( ! this . props . viewingCall || isVideoRoom ) && this . props . inRoom ) {
645
643
startButtons . push (
646
- < AccessibleTooltipButton
644
+ < AccessibleButton
647
645
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_inviteButton"
648
646
onClick = { this . props . onInviteClick }
649
647
title = { _t ( "action|invite" ) }
650
- alignment = { Alignment . Bottom }
648
+ placement = "bottom"
651
649
key = "invite"
652
650
/> ,
653
651
) ;
@@ -667,11 +665,11 @@ export default class RoomHeader extends React.Component<IProps, IState> {
667
665
) ;
668
666
} else {
669
667
endButtons . push (
670
- < AccessibleTooltipButton
668
+ < AccessibleButton
671
669
className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_minimiseButton"
672
670
onClick = { this . onHideCallClick }
673
671
title = { _t ( "room|header|video_room_view_chat_button" ) }
674
- alignment = { Alignment . Bottom }
672
+ placement = "bottom"
675
673
key = "minimise"
676
674
/> ,
677
675
) ;
@@ -754,7 +752,7 @@ export default class RoomHeader extends React.Component<IProps, IState> {
754
752
onClick = { this . onContextMenuOpenClick }
755
753
isExpanded = { ! ! this . state . contextMenuPosition }
756
754
title = { _t ( "room|context_menu|title" ) }
757
- alignment = { Alignment . Bottom }
755
+ placement = "bottom"
758
756
>
759
757
{ roomName }
760
758
{ this . props . room && < div className = "mx_LegacyRoomHeader_chevron" /> }
0 commit comments