Commit Graph

5 Commits

Author SHA1 Message Date
Mario Jr
2801848789 chore(audio): update some code checks done by sonarcloud 2021-06-30 18:39:32 -03:00
Mario Jr
3510f9a83a chore(audio): remove unused style in ButtonEmoji 2021-06-28 11:37:21 -03:00
Mario Jr
3433348b01 fix(audio): add label to device selector button
Some technical information:

Added the possibility to have a tooltip container inside of an emojibutton
(even if the button already has a container). We handle the hover event in the
parent button by adding a simbling element and binding the tooltip in it.
So the tooltip/hover of the ButtonEmoji won't affect the parent element.

No changes, but additions, making the default behavior of tooltip intact,
avoid regressions on it.
2021-06-25 16:43:48 -03:00
Mario Jr
006cdbf271 chore(audio): removed unused span wrapper in ButtonEmoji component 2021-06-24 16:01:40 -03:00
Mario Jr
ce076ffaad feat(audio): add a new button for selecting audio device
This commit adds a new small button over the "Phone/audio" button. Currently
this button pops up the device audio selector, which contains the "Leave audio"
option. This commit brings back the "Leave audio" behavior to the phone
button, using a new smaller button to switch between audio devices.

This issue address the problem reported by #12320 and complements the work done
for #9723.

Some technical details:
Added a new component : ButtonEmoji. This allow us to add an emoji inside
another button.
Modified dropdown trigger a bit: if the trigger contains a ButtonEmoji,
then we will use the emoji to trigger the dropdown (instead of the button
itself). This commit doens't change the default behavior of dropdown (when
the trigger doesn't have a ButtonEmoji component), to avoid regressions with
current dropdowns; this will only change it's behavior when used with
the new ButtonEmoji component.
2021-06-22 08:58:52 -03:00