|
|
|
@ -1926,6 +1926,19 @@ export function VoiceSpeechPanel() { |
|
|
|
getPopupContainer={() => document.body} |
|
|
|
droplist={ |
|
|
|
<div className="voicePage__speechLanguageDropdown" role="menu" aria-label={t("pages.voice.speech.emotion.aria")}> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
role="menuitem" |
|
|
|
className="voicePage__speechLanguageOption voicePage__speechLanguageOption_reset" |
|
|
|
disabled={selectedSpeechEmotion == null} |
|
|
|
onClick={() => { |
|
|
|
setSelectedSpeechEmotion(null); |
|
|
|
setSpeechEmotionMenuOpen(false); |
|
|
|
}} |
|
|
|
> |
|
|
|
{t("pages.voice.speech.emotion.reset")} |
|
|
|
</button> |
|
|
|
<div className="voicePage__speechEmotionDropdownDivider" role="separator" aria-hidden /> |
|
|
|
{SPEECH_EMOTION_OPTIONS.map((key) => { |
|
|
|
const isActive = selectedSpeechEmotion === key; |
|
|
|
return ( |
|
|
|
@ -1948,7 +1961,11 @@ export function VoiceSpeechPanel() { |
|
|
|
> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
className="voicePage__speechShortcut voicePage__speechShortcut_emotion" |
|
|
|
className={classNames( |
|
|
|
"voicePage__speechShortcut", |
|
|
|
"voicePage__speechShortcut_emotion", |
|
|
|
selectedSpeechEmotion != null && "voicePage__speechShortcut_emotion_selected", |
|
|
|
)} |
|
|
|
aria-haspopup="menu" |
|
|
|
aria-expanded={speechEmotionMenuOpen} |
|
|
|
aria-label={t("pages.voice.speech.emotion.aria")} |
|
|
|
|