Skip to content

Commit

Permalink
Fix color of close button in call settings
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Oct 28, 2021
1 parent 6dd6791 commit 17c0867
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions stylesheets/_modules.scss
Expand Up @@ -7959,13 +7959,13 @@ button.module-image__border-overlay:focus {
.module-calling-device-selection__close-button {
@include button-reset;

@include color-svg('../images/x-shadow-16.svg', $color-white);
@include color-svg('../images/icons/v2/x-24.svg', $color-gray-15);

height: 16px;
height: 24px;
position: absolute;
right: 5px;
top: 0;
width: 16px;
width: 24px;
z-index: 2;

@include keyboard-mode {
Expand Down
8 changes: 2 additions & 6 deletions ts/components/ModalHost.tsx
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: AGPL-3.0-only

import React, { useEffect } from 'react';
import classNames from 'classnames';
import { createPortal } from 'react-dom';
import FocusTrap from 'focus-trap-react';
import type { SpringValues } from '@react-spring/web';
Expand Down Expand Up @@ -76,13 +75,10 @@ export const ModalHost = React.memo(
allowOutsideClick: false,
}}
>
<div>
<div className={theme ? themeClassName(theme) : undefined}>
<animated.div
role="presentation"
className={classNames(
'module-modal-host__overlay',
theme ? themeClassName(theme) : undefined
)}
className="module-modal-host__overlay"
onMouseDown={noMouseClose ? undefined : handleMouseDown}
onMouseUp={noMouseClose ? undefined : handleMouseUp}
style={overlayStyles}
Expand Down

0 comments on commit 17c0867

Please sign in to comment.