diff --git a/css/_atlaskit_overrides.scss b/css/_atlaskit_overrides.scss
index 992eb5449..ba5f5dba0 100644
--- a/css/_atlaskit_overrides.scss
+++ b/css/_atlaskit_overrides.scss
@@ -24,14 +24,6 @@
bottom: calc(#{$newToolbarSizeWithPadding}) !important;
}
-/**
- * Override @atlaskit/theme styling for the top toolbar so it displays over
- * the video thumbnail while obscuring as little as possible.
- */
-.videocontainer__toptoolbar > div > div {
- background: none;
-}
-
/**
* Keep overflow menu within screen vertical bounds and make it scrollable.
diff --git a/css/_drawer.scss b/css/_drawer.scss
index c4eaf8186..981826494 100644
--- a/css/_drawer.scss
+++ b/css/_drawer.scss
@@ -42,15 +42,6 @@
}
}
- .popupmenu {
- margin: auto;
- width: 100%;
- }
-
- .popupmenu__item {
- height: 48px;
- }
-
{&} .overflow-menu {
margin: auto;
font-size: 1.2em;
diff --git a/css/_popover.scss b/css/_popover.scss
index 6e82fda94..ff9aed51f 100644
--- a/css/_popover.scss
+++ b/css/_popover.scss
@@ -43,10 +43,5 @@
.popover {
margin: -16px -24px;
- padding: 16px 24px;
z-index: $popoverZ;
}
-
-.padded-content {
- padding: 4px 8px;
-}
diff --git a/css/_popup_menu.scss b/css/_popup_menu.scss
index 5a2a7fdbc..cd319c0d6 100644
--- a/css/_popup_menu.scss
+++ b/css/_popup_menu.scss
@@ -2,122 +2,18 @@
* Initialize
**/
-.popupmenu {
- background-color: $menuBG;
- border-radius: 3px;
- list-style-type: none;
- min-width: 150px;
- text-align: left;
- padding: 0px;
- white-space: nowrap;
+.popupmenu__contents {
+ .popupmenu__volume-slider {
+ &::-webkit-slider-runnable-track {
+ background-color: $popupSliderColor;
+ }
- &__item {
- list-style-type: none;
- height: 35px;
- }
+ &::-moz-range-track {
+ background-color: $popupSliderColor;
+ }
- // Link Appearance
- &__link,
- &__contents {
- display: block;
- box-sizing: border-box;
- text-decoration: none;
- height: 100%;
- font-size: 9pt;
- width: 100%;
- cursor: pointer;
- padding: 0 5px;
- color: $popupMenuColor;
-
- &:hover {
- background-color: $popupMenuHoverBackground;
- color: $popupMenuHoverColor;
- }
-
- &.disabled {
- pointer-events: none;
- }
- }
-
- &__list {
- margin: 0;
- padding: 0;
- }
-
- &__text {
- display: inline-block;
- margin-left: 8px;
- vertical-align: middle;
- }
-
- &__link {
- i {
- cursor: pointer;
- }
- }
-
- &__contents {
- display: flex;
-
- /**
- * Positioning styles on the slider and its container are used to make
- * the container fit the popup width, by removing the slider from the
- * page flow, and then making the slider fit the container.
- */
- .popupmenu__slider_container {
- position: relative;
- width: 100%;
-
- .popupmenu__slider {
- position: absolute;
- top: 50%;
- transform: translate(0, -50%);
- width: 100%;
-
- &::-webkit-slider-runnable-track {
- background-color: $popupSliderColor;
- }
-
- &::-moz-range-track {
- background-color: $popupSliderColor;
- }
-
- &::-ms-fill-lower {
- background-color: $popupSliderColor;
- }
+ &::-ms-fill-lower {
+ background-color: $popupSliderColor;
}
}
- }
-
- &__icon {
- vertical-align: middle;
- position: relative;
- display: inline-block;
- min-width: 20px;
- height: 100%;
- padding-right: 10px;
-
- > * {
- @include absoluteAligning();
- }
- }
-
- .icon-kick,
- .icon-play,
- .icon-stop {
- font-size: 8pt;
- }
-}
-
-/**
- * Override reset css styling modifying all lists and set negative margin to
- * reduce the visibility of padding on AtlasKit
- * InlineDialogs.
- */
-ul.popupmenu {
- margin: -16px -24px;
-}
-
-span.localvideomenu:hover ul.popupmenu, span.remotevideomenu:hover ul.popupmenu, ul.popupmenu:hover {
- display:block !important;
}
diff --git a/css/_variables.scss b/css/_variables.scss
index fd1d0aba9..84ea030e9 100644
--- a/css/_variables.scss
+++ b/css/_variables.scss
@@ -13,9 +13,6 @@ $hangupFontSize: 2em;
*/
// Video layout.
-$thumbnailToolbarHeight: 22px;
-$thumbnailIndicatorBorder: 2px;
-$thumbnailIndicatorSize: $thumbnailToolbarHeight;
$thumbnailVideoMargin: 2px;
$thumbnailsBorder: 2px;
$thumbnailVideoBorder: 2px;
@@ -56,19 +53,12 @@ $overflowMenuItemBackground: #36383C;
/**
* Video layout
*/
-$videoThumbnailHovered: rgba(22, 94, 204, .4);
-$videoThumbnailSelected: #165ECC;
$participantNameColor: #fff;
-$thumbnailPictogramColor: #fff;
-$dominantSpeakerBg: #165ecc;
-$raiseHandBg: #F8AE1A;
$audioLevelBg: #44A5FF;
-$connectionIndicatorBg: #165ecc;
$audioLevelShadow: rgba(9, 36, 77, 0.9);
$videoStateIndicatorColor: $defaultColor;
$videoStateIndicatorBackground: $toolbarBackground;
$videoStateIndicatorSize: 40px;
-$remoteVideoMenuIconMargin: initial;
/**
* Feedback Modal
@@ -102,7 +92,6 @@ $sidebarWidth: 315px;
* Misc.
*/
$borderRadius: 4px;
-$popoverMenuPadding: 13px;
$happySoftwareBackground: transparent;
$desktopAppDragBarHeight: 25px;
$scrollHeight: 7px;
@@ -118,7 +107,6 @@ $toolbarBackgroundZ: 4;
$labelsZ: 5;
$subtitlesZ: 7;
$popoverZ: 8;
-$zindex10: 10;
$reloadZ: 20;
$poweredByZ: 100;
$ringingZ: 300;
diff --git a/css/_videolayout_default.scss b/css/_videolayout_default.scss
index d78a0f697..2fd87e309 100644
--- a/css/_videolayout_default.scss
+++ b/css/_videolayout_default.scss
@@ -43,165 +43,7 @@
.videocontainer {
position: relative;
text-align: center;
-
- &__background {
- @include topLeft();
- background-color: black;
- border-radius: $borderRadius;
- width: 100%;
- height: 100%;
- }
-
- /**
- * The toolbar of the video thumbnail.
- */
- &__toolbar,
- &__toptoolbar {
- position: absolute;
- left: 0;
- pointer-events: none;
- z-index: $zindex10;
- width: 100%;
- box-sizing: border-box; // Includes the padding in the 100% width.
-
- /**
- * FIXME (lenny): Disabling pointer-events is a pretty big sin that
- * sidesteps the problems. There are z-index wars occurring within
- * videocontainer and AtlasKit Tooltips rely on their parent z-indexe
- * being higher than whatever they need to appear over. So set a higher
- * z-index for the tooltip containers but make any empty space not block
- * mouse overs for various mouseover triggers.
- */
- pointer-events: none;
-
- * {
- pointer-events: auto;
- }
-
- .indicator-container {
- display: inline-block;
- float: left;
- pointer-events: all;
- }
- }
-
- &__toolbar {
- bottom: 0;
- padding: 0 5px 0 5px;
- }
-
- &__toptoolbar {
- $toolbarIconMargin: 5px;
- top: 0;
- padding-bottom: 0;
- /**
- * Override text-align center as icons need to be left justified.
- */
- text-align: left;
-
- /**
- * Intentionally use margin on the icon itself as AtlasKit InlineDialog
- * positioning depends on the trigger (indicator icon).
- */
- .indicator {
- margin-left: 5px;
- margin-top: $toolbarIconMargin;
- }
-
- .indicator-container:nth-child(1) .indicator {
- margin-left: $toolbarIconMargin;
- }
-
- .indicator-container {
- display: inline-block;
- vertical-align: top;
-
- .popover-trigger {
- display: inline-block;
- }
- }
-
- .connection-indicator,
- .indicator {
- position: relative;
- font-size: 8px;
- text-align: center;
- line-height: $thumbnailIndicatorSize;
- padding: 0;
- @include circle($thumbnailIndicatorSize);
- box-sizing: border-box;
- z-index: $zindex3;
- background: $dominantSpeakerBg;
- color: $thumbnailPictogramColor;
- border: $thumbnailIndicatorBorder solid $thumbnailPictogramColor;
-
- .indicatoricon {
- @include absoluteAligning();
- }
-
- .connection {
- position: relative;
- display: inline-block;
- margin: 0 auto;
- left: 0;
- @include transform(translate(0, -50%));
-
- &_empty,
- &_lost
- {
- color: #8B8B8B;/*#FFFFFF*/
- overflow: hidden;
- }
-
- &_full
- {
- @include topLeft();
- color: #FFFFFF;/*#15A1ED*/
- overflow: hidden;
- }
-
- &_ninja
- {
- font-size: 1.5em;
- }
- }
-
- .icon-gsm-bars {
- cursor: pointer;
- font-size: 1em;
- }
- }
-
- .hide-connection-indicator {
- display: none;
- }
- }
-
- &__hoverOverlay {
- background: rgba(0,0,0,.6);
- border-radius: $borderRadius;
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- visibility: hidden;
- z-index: $zindex2;
- }
-
- &__participant-name {
- color: #fff;
- background-color: rgba(0,0,0,.4);
- padding: 3px 7px;
- border-radius: 3px;
- max-width: calc(100% - 32px);
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- height: 16px;
- display: inline-block;
- text-align: right;
- }
+ overflow: 'hidden';
@media (min-width: 581px) {
&.shift-right {
@@ -288,16 +130,6 @@
z-index: $zindex0;
}
-/**
- * Positions video thumbnail display name and editor.
- */
-#alwaysOnTop .displayname,
-.videocontainer .displayname,
-.videocontainer .editdisplayname {
- font-weight: 100;
- color: $participantNameColor;
-}
-
#alwaysOnTop .displayname {
font-size: 15px;
position: inherit;
@@ -307,146 +139,6 @@
margin-top: 10px;
}
-/**
- * Positions video thumbnail display name editor.
- */
-.videocontainer .editdisplayname {
- outline: none;
- border: none;
- background: none;
- box-shadow: none;
- padding: 0;
-}
-
-#localVideoContainer .displayname:hover {
- cursor: text;
-}
-
-.videocontainer .displayname {
- pointer-events: none;
- padding: 0 3px 0 3px;
-}
-
-.videocontainer .editdisplayname {
- height: auto;
-}
-
-#localDisplayName {
- pointer-events: auto !important;
-}
-
-.videocontainer>a.displayname {
- display: inline-block;
- position: absolute;
- color: #FFFFFF;
- bottom: 0;
- right: 0;
- padding: 3px 5px;
- font-size: 9pt;
- cursor: pointer;
- z-index: $zindex2;
-}
-
-/**
- * Video thumbnail toolbar icon.
- */
-.videocontainer .toolbar-icon {
- font-size: 8pt;
- text-align: center;
- text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
- color: #FFFFFF;
- width: 12px;
- line-height: $thumbnailToolbarHeight;
- height: $thumbnailToolbarHeight;
- padding: 0;
- border: 0;
- margin: 0px 5px 0px 0px;
-}
-
-/**
- * Toolbar icon internal i elements (font icons).
- */
-.toolbar-icon>div {
- height: $thumbnailToolbarHeight;
- display: flex;
- flex-direction: column;
- justify-content: center;
-}
-
-/**
- * Toolbar icons positioned on the right.
- */
-.moderator-icon {
- display: inline-block;
-
- &.right {
- float: right;
- margin: 0px 0px 0px 5px;
- }
-
- .toolbar-icon {
- margin: 0;
- }
-}
-
-.raisehandindicator {
- background: $raiseHandBg !important;
-}
-
-.connection-indicator {
- background: $connectionIndicatorBg;
-
- &.status-high {
- background: green;
- }
-
- &.status-med {
- background: #FFD740;
- }
-
- &.status-lost {
- background: gray;
- }
-
- &.status-low {
- background: #BF2117;
- }
-
- &.status-other {
- background: $connectionIndicatorBg;
- }
-
- &.status-disabled {
- background: transparent;
- border: none
- }
-}
-
-.local-video-menu-trigger,
-.remote-video-menu-trigger,
-.localvideomenu,
-.remotevideomenu
-{
- display: inline-block;
- position: absolute;
- top: 0px;
- right: 0;
- z-index: $zindex2;
- width: 18px;
- height: 18px;
- color: #FFF;
- font-size: 10pt;
- margin-right: $remoteVideoMenuIconMargin;
-
- >i{
- cursor: hand;
- }
-}
-.local-video-menu-trigger,
-.remote-video-menu-trigger {
- margin-top: 7px;
-}
-
/**
* Audio indicator on video thumbnails.
*/
@@ -623,74 +315,11 @@
display: none;
}
-.display-avatar-with-name {
- .avatar-container {
- visibility: visible;
- }
-
- .displayNameContainer {
- visibility: visible;
- }
-
- .videocontainer__hoverOverlay {
- visibility: visible;
- }
-
- video {
- visibility: hidden;
- }
-}
-
-.display-name-on-black {
- .avatar-container {
- visibility: hidden;
- }
-
- .displayNameContainer {
- visibility: visible;
- }
-
- .videocontainer__hoverOverlay {
- visibility: hidden;
- }
-
- video {
- opacity: 0.2;
- visibility: visible;
- }
-}
-
.display-video {
.avatar-container {
visibility: hidden;
}
- .displayNameContainer {
- visibility: hidden;
- }
-
- .videocontainer__hoverOverlay {
- visibility: hidden;
- }
-
- video {
- visibility: visible;
- }
-}
-
-.display-name-on-video {
- .avatar-container {
- visibility: hidden;
- }
-
- .displayNameContainer {
- visibility: visible;
- }
-
- .videocontainer__hoverOverlay {
- visibility: visible;
- }
-
video {
visibility: visible;
}
@@ -701,14 +330,6 @@
visibility: visible;
}
- .displayNameContainer {
- visibility: hidden;
- }
-
- .videocontainer__hoverOverlay {
- visibility: hidden;
- }
-
video {
visibility: hidden;
}
diff --git a/css/filmstrip/_small_video.scss b/css/filmstrip/_small_video.scss
index 4f7e5ede2..bffd1a50c 100644
--- a/css/filmstrip/_small_video.scss
+++ b/css/filmstrip/_small_video.scss
@@ -6,37 +6,10 @@
border-radius: $borderRadius;
margin: 0 $thumbnailVideoMargin;
- &.videoContainerFocused, &:hover {
+ &:hover {
cursor: hand;
}
- /**
- * Focused video thumbnail.
- */
- &.videoContainerFocused {
- border: $thumbnailVideoBorder solid $videoThumbnailSelected;
- box-shadow: inset 0 0 3px $videoThumbnailSelected,
- 0 0 3px $videoThumbnailSelected;
- }
-
- .remotevideomenu > .icon-menu, .localvideomenu > .icon-menu {
- display: none;
- }
-
- /**
- * Hovered video thumbnail.
- */
- &:hover:not(.videoContainerFocused):not(.active-speaker) {
- cursor: hand;
- border: $thumbnailVideoBorder solid $videoThumbnailHovered;
- box-shadow: inset 0 0 3px $videoThumbnailHovered,
- 0 0 3px $videoThumbnailHovered;
-
- .remotevideomenu > .icon-menu, .localvideomenu > .icon-menu {
- display: inline-block;
- }
- }
-
& > video {
cursor: hand;
border-radius: $borderRadius;
diff --git a/css/filmstrip/_tile_view.scss b/css/filmstrip/_tile_view.scss
index ed5c689f9..44bd177b9 100644
--- a/css/filmstrip/_tile_view.scss
+++ b/css/filmstrip/_tile_view.scss
@@ -2,13 +2,6 @@
* CSS styles that are specific to the filmstrip that shows the thumbnail tiles.
*/
.tile-view {
- /**
- * Add a border around the active speaker to make the thumbnail easier to
- * see.
- */
- .active-speaker {
- box-shadow: 0px 0px 1px 1.5px black, 0px 0px 1.3px 4px $videoThumbnailSelected;
- }
.remote-videos {
align-items: center;
@@ -134,7 +127,3 @@
}
}
}
-
-.indicator-icon-container {
- display: inline-block;
-}
diff --git a/css/filmstrip/_tile_view_overrides.scss b/css/filmstrip/_tile_view_overrides.scss
index 658f48918..0342ac640 100644
--- a/css/filmstrip/_tile_view_overrides.scss
+++ b/css/filmstrip/_tile_view_overrides.scss
@@ -35,16 +35,4 @@
#remotePresenceMessage {
display: none !important;
}
-
- /**
- * Thumbnail popover menus can overlap other thumbnails. Setting an auto
- * z-index will allow AtlasKit InlineDialog's large z-index to be
- * respected and thereby display over elements in other thumbnails,
- * specifically the various status icons.
- */
- .remotevideomenu,
- .localvideomenu,
- .videocontainer__toptoolbar {
- z-index: auto;
- }
}
diff --git a/css/filmstrip/_vertical_filmstrip_overrides.scss b/css/filmstrip/_vertical_filmstrip_overrides.scss
index fc30fe641..3c70a69ab 100644
--- a/css/filmstrip/_vertical_filmstrip_overrides.scss
+++ b/css/filmstrip/_vertical_filmstrip_overrides.scss
@@ -19,72 +19,6 @@
* Overrides for small videos in vertical filmstrip mode.
*/
.vertical-filmstrip .filmstrip__videos .videocontainer {
- /**
- * Move status icons to the bottom right of the thumbnail.
- */
- .videocontainer__toolbar {
- /**
- * FIXME: disable pointer to allow any elements moved below to still
- * be clickable. The real fix would to make sure those moved elements
- * are actually part of the toolbar instead of positioning being faked.
- */
- pointer-events: none;
- text-align: right;
-
- > div {
- pointer-events: none;
- }
-
- .right {
- float: none;
- margin: auto;
- }
-
- .toolbar-icon {
- pointer-events: all;
- }
- }
-
- /**
- * Apply hardware acceleration to prevent flickering on scroll. The
- * selectors are specific to icon wrappers to prevent fixed position dialogs
- * and tooltips from getting a new location context due to translate3d.
- */
- .connection-indicator,
- .local-video-menu-trigger,
- .remote-video-menu-trigger,
- .indicator-icon-container {
- transform: translate3d(0, 0, 0);
- }
-
- .indicator-icon-container {
- display: inline-block;
- }
-
- .indicator-container {
- float: none;
- }
-
- /**
- * Move the remote video menu trigger to the bottom left of the video
- * thumbnail.
- */
- .localvideomenu,
- .remotevideomenu,
- .local-video-menu-trigger,
- .remote-video-menu-trigger {
- bottom: 0;
- left: 0;
- top: auto;
- right: auto;
- }
-
- .local-video-menu-trigger,
- .remote-video-menu-trigger {
- margin-bottom: 3px;
- margin-left: $remoteVideoMenuIconMargin;
- }
-
.self-view-mobile-portrait video {
object-fit: contain;
}
diff --git a/css/themes/_light.scss b/css/themes/_light.scss
index 49854d8f5..35b0dcef2 100644
--- a/css/themes/_light.scss
+++ b/css/themes/_light.scss
@@ -75,11 +75,7 @@ $errorColor: #c61600;
$feedbackCancelFontColor: #333;
// Popover colors
-$popoverBg: initial;
$popoverFontColor: #ffffff !important;
-$popupMenuColor: #ffffff !important;
-$popupMenuHoverColor: #ffffff !important;
-$popupMenuHoverBackground: rgba(255, 255, 255, 0.1);
$popupSliderColor: #0376da;
// Toolbar
diff --git a/interface_config.js b/interface_config.js
index c3a76afb9..cf97296e5 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -26,7 +26,7 @@ var interfaceConfig = {
CLOSE_PAGE_GUEST_HINT: false, // A html text to be shown to guests on the close page, false disables it
- DEFAULT_BACKGROUND: '#474747',
+ DEFAULT_BACKGROUND: '#040404',
DEFAULT_LOGO_URL: 'images/watermark.svg',
DEFAULT_WELCOME_PAGE_LOGO_URL: 'images/watermark.svg',
diff --git a/lang/main.json b/lang/main.json
index c26dba26d..7335bb4e5 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -949,8 +949,8 @@
"mute": "Mute / Unmute",
"muteEveryone": "Mute everyone",
"muteEveryoneElse": "Mute everyone else",
- "muteEveryonesVideo": "Disable everyone's video",
- "muteEveryoneElsesVideo": "Disable everyone else's video",
+ "muteEveryonesVideoStream": "Stop everyone's video",
+ "muteEveryoneElsesVideoStream": "Stop everyone else's video",
"participants": "Participants",
"pip": "Toggle Picture-in-Picture mode",
"privateMessage": "Send private message",
diff --git a/react/features/base/components/context-menu/ContextMenu.js b/react/features/base/components/context-menu/ContextMenu.js
index 0aee6d45d..bf556d706 100644
--- a/react/features/base/components/context-menu/ContextMenu.js
+++ b/react/features/base/components/context-menu/ContextMenu.js
@@ -19,7 +19,7 @@ type Props = {
/**
* Class name for context menu. Used to overwrite default styles.
*/
- className?: string,
+ className?: ?string,
/**
* The entity for which the context menu is displayed.
@@ -31,10 +31,15 @@ type Props = {
*/
hidden?: boolean,
+ /**
+ * Whether or not the menu is already in a drawer.
+ */
+ inDrawer?: ?boolean,
+
/**
* Whether or not drawer should be open.
*/
- isDrawerOpen: boolean,
+ isDrawerOpen?: boolean,
/**
* Target elements against which positioning calculations are made.
@@ -49,7 +54,7 @@ type Props = {
/**
* Callback for drawer close.
*/
- onDrawerClose: Function,
+ onDrawerClose?: Function,
/**
* Callback for the mouse entering the component.
@@ -59,7 +64,7 @@ type Props = {
/**
* Callback for the mouse leaving the component.
*/
- onMouseLeave: Function
+ onMouseLeave?: Function
};
const useStyles = makeStyles(theme => {
@@ -106,6 +111,7 @@ const ContextMenu = ({
className,
entity,
hidden,
+ inDrawer,
isDrawerOpen,
offsetTarget,
onClick,
@@ -147,6 +153,14 @@ const ContextMenu = ({
}
}, [ hidden ]);
+ if (_overflowDrawer && inDrawer) {
+ return (
+ {children}
+
);
+ }
+
return _overflowDrawer
?
{
+ return {
+ contextMenuItem: {
+ alignItems: 'center',
+ cursor: 'pointer',
+ display: 'flex',
+ minHeight: '40px',
+ padding: '10px 16px',
+ boxSizing: 'border-box',
+
+ '& > *:not(:last-child)': {
+ marginRight: `${theme.spacing(3)}px`
+ },
+
+ '&:hover': {
+ backgroundColor: theme.palette.ui04
+ }
+ },
+
+ contextMenuItemDisabled: {
+ pointerEvents: 'none'
+ },
+
+ contextMenuItemDrawer: {
+ padding: '12px 16px'
+ },
+
+ contextMenuItemIcon: {
+ '& svg': {
+ fill: theme.palette.icon01
+ }
+ }
+ };
+});
+
+const ContextMenuItem = ({
+ accessibilityLabel,
+ className,
+ customIcon,
+ disabled,
+ id,
+ icon,
+ onClick,
+ text,
+ textClassName }: Props) => {
+ const styles = useStyles();
+ const _overflowDrawer = useSelector(showOverflowDrawer);
+
+ return (
+
+ {customIcon ? customIcon
+ : icon && }
+ {text}
+
+ );
+};
+
+export default ContextMenuItem;
diff --git a/react/features/base/components/context-menu/ContextMenuItemGroup.js b/react/features/base/components/context-menu/ContextMenuItemGroup.js
index eb6d37a09..1e59eb8ef 100644
--- a/react/features/base/components/context-menu/ContextMenuItemGroup.js
+++ b/react/features/base/components/context-menu/ContextMenuItemGroup.js
@@ -1,50 +1,8 @@
// @flow
import { makeStyles } from '@material-ui/core';
-import clsx from 'clsx';
import React from 'react';
-import { useSelector } from 'react-redux';
-import { showOverflowDrawer } from '../../../toolbox/functions.web';
-import { Icon } from '../../icons';
-
-export type Action = {
-
- /**
- * Label used for accessibility.
- */
- accessibilityLabel: string,
-
- /**
- * CSS class name used for custom styles.
- */
- className?: string,
-
- /**
- * Custom icon. If used, the icon prop is ignored.
- * Used to allow custom children instead of just the default icons.
- */
- customIcon?: React$Node,
-
- /**
- * Id of the action container.
- */
- id?: string,
-
- /**
- * Default icon for action.
- */
- icon?: Function,
-
- /**
- * Click handler.
- */
- onClick?: Function,
-
- /**
- * Action text.
- */
- text: string
-}
+import ContextMenuItem, { type Props as Action } from './ContextMenuItem';
type Props = {
@@ -59,7 +17,6 @@ type Props = {
children?: React$Node,
};
-
const useStyles = makeStyles(theme => {
return {
contextMenuItemGroup: {
@@ -70,33 +27,6 @@ const useStyles = makeStyles(theme => {
'& + &:not(:empty)': {
borderTop: `1px solid ${theme.palette.ui04}`
}
- },
-
- contextMenuItem: {
- alignItems: 'center',
- cursor: 'pointer',
- display: 'flex',
- minHeight: '40px',
- padding: '10px 16px',
- boxSizing: 'border-box',
-
- '& > *:not(:last-child)': {
- marginRight: `${theme.spacing(3)}px`
- },
-
- '&:hover': {
- backgroundColor: theme.palette.ui04
- }
- },
-
- contextMenuItemDrawer: {
- padding: '12px 16px'
- },
-
- contextMenuItemIcon: {
- '& svg': {
- fill: theme.palette.icon01
- }
}
};
});
@@ -106,28 +36,14 @@ const ContextMenuItemGroup = ({
children
}: Props) => {
const styles = useStyles();
- const _overflowDrawer = useSelector(showOverflowDrawer);
return (
{children}
- {actions && actions.map(({ accessibilityLabel, className, customIcon, id, icon, onClick, text }) => (
-
- {customIcon ? customIcon
- : icon && }
- {text}
-
+ {actions && actions.map(actionProps => (
+
))}
);
diff --git a/react/features/base/icons/svg/crown.svg b/react/features/base/icons/svg/crown.svg
index c35d74923..22d7ec669 100644
--- a/react/features/base/icons/svg/crown.svg
+++ b/react/features/base/icons/svg/crown.svg
@@ -1,3 +1,3 @@
-