@@ -33,7 +33,6 @@ import RoomHeaderButtons from "../right_panel/LegacyRoomHeaderButtons";
3333import E2EIcon from "./E2EIcon" ;
3434import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar" ;
3535import AccessibleButton , { ButtonEvent } from "../elements/AccessibleButton" ;
36- import AccessibleTooltipButton from "../elements/AccessibleTooltipButton" ;
3736import RoomTopic from "../elements/RoomTopic" ;
3837import RoomName from "../elements/RoomName" ;
3938import { E2EStatus } from "../../../utils/ShieldUtils" ;
@@ -68,7 +67,6 @@ import IconizedContextMenu, {
6867} from "../context_menus/IconizedContextMenu" ;
6968import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload" ;
7069import { SessionDuration } from "../voip/CallDuration" ;
71- import { Alignment } from "../elements/Tooltip" ;
7270import RoomCallBanner from "../beacon/RoomCallBanner" ;
7371import { shouldShowComponent } from "../../../customisations/helpers/UIComponents" ;
7472import { UIComponent } from "../../../settings/UIFeature" ;
@@ -111,12 +109,12 @@ const VoiceCallButton: FC<VoiceCallButtonProps> = ({ room, busy, setBusy, behavi
111109 } , [ behavior , room , setBusy ] ) ;
112110
113111 return (
114- < AccessibleTooltipButton
112+ < AccessibleButton
115113 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_voiceCallButton"
116114 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"
120118 disabled = { disabled || busy }
121119 />
122120 ) ;
@@ -237,13 +235,13 @@ const VideoCallButton: FC<VideoCallButtonProps> = ({ room, busy, setBusy, behavi
237235
238236 return (
239237 < >
240- < AccessibleTooltipButton
238+ < AccessibleButton
241239 ref = { buttonRef }
242240 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_videoCallButton"
243241 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"
247245 disabled = { disabled || busy }
248246 />
249247 { menu }
@@ -442,15 +440,15 @@ const CallLayoutSelector: FC<CallLayoutSelectorProps> = ({ call }) => {
442440
443441 return (
444442 < >
445- < AccessibleTooltipButton
443+ < AccessibleButton
446444 ref = { buttonRef }
447445 className = { classNames ( "mx_LegacyRoomHeader_button" , {
448446 "mx_LegacyRoomHeader_layoutButton--freedom" : layout === Layout . Tile ,
449447 "mx_LegacyRoomHeader_layoutButton--spotlight" : layout === Layout . Spotlight ,
450448 } ) }
451449 onClick = { onClick }
452450 title = { _t ( "room|header|video_call_ec_change_layout" ) }
453- alignment = { Alignment . Bottom }
451+ placement = "bottom"
454452 key = "layout"
455453 />
456454 { menu }
@@ -600,19 +598,19 @@ export default class RoomHeader extends React.Component<IProps, IState> {
600598
601599 if ( ! this . props . viewingCall && this . props . onForgetClick ) {
602600 startButtons . push (
603- < AccessibleTooltipButton
601+ < AccessibleButton
604602 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_forgetButton"
605603 onClick = { this . props . onForgetClick }
606604 title = { _t ( "room|header|forget_room_button" ) }
607- alignment = { Alignment . Bottom }
605+ placement = "bottom"
608606 key = "forget"
609607 /> ,
610608 ) ;
611609 }
612610
613611 if ( ! this . props . viewingCall && this . props . onAppsClick ) {
614612 startButtons . push (
615- < AccessibleTooltipButton
613+ < AccessibleButton
616614 className = { classNames ( "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_appsButton" , {
617615 mx_LegacyRoomHeader_appsButton_highlight : this . props . appsShown ,
618616 } ) }
@@ -623,31 +621,31 @@ export default class RoomHeader extends React.Component<IProps, IState> {
623621 : _t ( "room|header|show_widgets_button" )
624622 }
625623 aria-checked = { this . props . appsShown }
626- alignment = { Alignment . Bottom }
624+ placement = "bottom"
627625 key = "apps"
628626 /> ,
629627 ) ;
630628 }
631629
632630 if ( ! this . props . viewingCall && this . props . onSearchClick && this . props . inRoom ) {
633631 startButtons . push (
634- < AccessibleTooltipButton
632+ < AccessibleButton
635633 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_searchButton"
636634 onClick = { this . props . onSearchClick }
637635 title = { _t ( "action|search" ) }
638- alignment = { Alignment . Bottom }
636+ placement = "bottom"
639637 key = "search"
640638 /> ,
641639 ) ;
642640 }
643641
644642 if ( this . props . onInviteClick && ( ! this . props . viewingCall || isVideoRoom ) && this . props . inRoom ) {
645643 startButtons . push (
646- < AccessibleTooltipButton
644+ < AccessibleButton
647645 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_inviteButton"
648646 onClick = { this . props . onInviteClick }
649647 title = { _t ( "action|invite" ) }
650- alignment = { Alignment . Bottom }
648+ placement = "bottom"
651649 key = "invite"
652650 /> ,
653651 ) ;
@@ -667,11 +665,11 @@ export default class RoomHeader extends React.Component<IProps, IState> {
667665 ) ;
668666 } else {
669667 endButtons . push (
670- < AccessibleTooltipButton
668+ < AccessibleButton
671669 className = "mx_LegacyRoomHeader_button mx_LegacyRoomHeader_minimiseButton"
672670 onClick = { this . onHideCallClick }
673671 title = { _t ( "room|header|video_room_view_chat_button" ) }
674- alignment = { Alignment . Bottom }
672+ placement = "bottom"
675673 key = "minimise"
676674 /> ,
677675 ) ;
@@ -754,7 +752,7 @@ export default class RoomHeader extends React.Component<IProps, IState> {
754752 onClick = { this . onContextMenuOpenClick }
755753 isExpanded = { ! ! this . state . contextMenuPosition }
756754 title = { _t ( "room|context_menu|title" ) }
757- alignment = { Alignment . Bottom }
755+ placement = "bottom"
758756 >
759757 { roomName }
760758 { this . props . room && < div className = "mx_LegacyRoomHeader_chevron" /> }
0 commit comments