Просмотр исходного кода

Update all modal / popup headers

Added a new background to all modals across the application.
Sergiu Miclea 7 лет назад
Родитель
Сommit
c172a8b3a2

+ 4 - 2
src/components/molecules/Modal/Modal.jsx

@@ -20,17 +20,19 @@ import styled from 'styled-components'
 import Modal from 'react-modal'
 import autobind from 'autobind-decorator'
 
-import Palette from '../../styleUtils/Palette'
 import StyleProps from '../../styleUtils/StyleProps'
 import KeyboardManager from '../../../utils/KeyboardManager'
 
+import headerBackground from './images/header-background.png'
+
 const Title = styled.div`
   height: 48px;
   font-size: 24px;
   font-weight: ${StyleProps.fontWeights.light};
-  background: ${Palette.grayscale[1]};
   text-align: center;
   line-height: 48px;
+  color: white;
+  background: url('${headerBackground}') center/contain no-repeat;
 `
 
 type Props = {

BIN
src/components/molecules/Modal/images/header-background.png