adjust styles
This commit is contained in:
parent
95e3bba2f1
commit
56c4657c46
@ -150,6 +150,8 @@ const ReactionsButton = (props) => {
|
||||
overrideMobileStyles
|
||||
isHorizontal={!isMobile}
|
||||
isMobile={isMobile}
|
||||
roundButtons={true}
|
||||
keepOpen={true}
|
||||
opts={{
|
||||
id: 'reactions-dropdown-menu',
|
||||
keepMounted: true,
|
||||
|
@ -98,7 +98,7 @@ class BBBMenu extends React.Component {
|
||||
};
|
||||
|
||||
makeMenuItems() {
|
||||
const { actions, selectedEmoji, intl, isHorizontal, isMobile } = this.props;
|
||||
const { actions, selectedEmoji, intl, isHorizontal, isMobile, roundButtons, keepOpen } = this.props;
|
||||
|
||||
return actions?.map(a => {
|
||||
const { dataTest, label, onClick, key, disabled, description, selected } = a;
|
||||
@ -128,9 +128,10 @@ class BBBMenu extends React.Component {
|
||||
disableGutters={true}
|
||||
disabled={disabled}
|
||||
style={customStyles}
|
||||
roundButtons={roundButtons}
|
||||
onClick={(event) => {
|
||||
onClick();
|
||||
const close = !key?.includes('setstatus') && !key?.includes('back');
|
||||
const close = !keepOpen && !key?.includes('setstatus') && !key?.includes('back');
|
||||
// prevent menu close for sub menu actions
|
||||
if (close) this.handleClose(event);
|
||||
event.stopPropagation();
|
||||
|
@ -107,6 +107,15 @@ const BBBMenuItem = styled(MenuItem)`
|
||||
}
|
||||
}
|
||||
`}
|
||||
${({ roundButtons }) => roundButtons && `
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: ${colorWhite} !important;
|
||||
div div div {
|
||||
background-color: ${colorPrimary} !important;
|
||||
}
|
||||
}
|
||||
`}
|
||||
`;
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user