From 1b6d753cfe71002024b5641b1e0a371458669466 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Thu, 8 Dec 2022 15:27:32 +0100 Subject: [PATCH] Add voice broadcast device selection tooltip (#9726) --- .../components/atoms/VoiceBroadcastHeader.tsx | 6 +++-- .../molecules/VoiceBroadcastRecordingPip.tsx | 8 +++--- .../VoiceBroadcastHeader-test.tsx.snap | 20 ++++++++++++--- .../VoiceBroadcastPlaybackBody-test.tsx.snap | 25 +++++++++++++++---- ...oiceBroadcastPreRecordingPip-test.tsx.snap | 5 +++- .../VoiceBroadcastRecordingBody-test.tsx.snap | 10 ++++++-- 6 files changed, 56 insertions(+), 18 deletions(-) diff --git a/src/voice-broadcast/components/atoms/VoiceBroadcastHeader.tsx b/src/voice-broadcast/components/atoms/VoiceBroadcastHeader.tsx index 64640ca793..7984316459 100644 --- a/src/voice-broadcast/components/atoms/VoiceBroadcastHeader.tsx +++ b/src/voice-broadcast/components/atoms/VoiceBroadcastHeader.tsx @@ -26,6 +26,7 @@ import { Icon as XIcon } from "../../../../res/img/element-icons/cancel-rounded. import Clock from "../../../components/views/audio_messages/Clock"; import { formatTimeLeft } from "../../../DateUtils"; import Spinner from "../../../components/views/elements/Spinner"; +import AccessibleTooltipButton from "../../../components/views/elements/AccessibleTooltipButton"; interface VoiceBroadcastHeaderProps { live?: VoiceBroadcastLiveness; @@ -87,13 +88,14 @@ export const VoiceBroadcastHeader: React.FC = ({ }); const microphoneLine = microphoneLabel && ( -
{ microphoneLabel } -
+ ); return
diff --git a/src/voice-broadcast/components/molecules/VoiceBroadcastRecordingPip.tsx b/src/voice-broadcast/components/molecules/VoiceBroadcastRecordingPip.tsx index 06ebebb39f..7946cf0262 100644 --- a/src/voice-broadcast/components/molecules/VoiceBroadcastRecordingPip.tsx +++ b/src/voice-broadcast/components/molecules/VoiceBroadcastRecordingPip.tsx @@ -28,9 +28,9 @@ import { Icon as PauseIcon } from "../../../../res/img/element-icons/pause.svg"; import { Icon as RecordIcon } from "../../../../res/img/element-icons/Record.svg"; import { Icon as MicrophoneIcon } from "../../../../res/img/element-icons/Mic.svg"; import { _t } from "../../../languageHandler"; -import AccessibleButton from "../../../components/views/elements/AccessibleButton"; import { useAudioDeviceSelection } from "../../../hooks/useAudioDeviceSelection"; import { DevicesContextMenu } from "../../../components/views/audio_messages/DevicesContextMenu"; +import AccessibleTooltipButton from "../../../components/views/elements/AccessibleTooltipButton"; interface VoiceBroadcastRecordingPipProps { recording: VoiceBroadcastRecording; @@ -91,12 +91,12 @@ export const VoiceBroadcastRecordingPip: React.FC
{ toggleControl } - setShowDeviceSelect(true)} + title={_t("Change input device")} > - +