File tree Expand file tree Collapse file tree 5 files changed +42
-14
lines changed
src/frontend/src/components
retro-formats/mood/categories Expand file tree Collapse file tree 5 files changed +42
-14
lines changed Original file line number Diff line number Diff line change 6
6
bottom : 0 ;
7
7
background : rgba (128 , 128 , 128 , 0.5 );
8
8
z-index : 10 ;
9
- backdrop-filter : blur (2px );
10
9
11
- animation : 0.2s ease popup- fade - in;
10
+ animation : 0.2s ease popup- fade - in, 0.05 s 0.2 s step-end forwards popup - blur - background ;
12
11
13
12
.popup-content {
14
13
position : absolute ;
34
33
font-size : 1.5em ;
35
34
text-align : center ;
36
35
margin-bottom : 16px ;
36
+
37
+ & .hidden {
38
+ /* still visible to screen readers due to aria-labelledby */
39
+ display : none ;
40
+ }
37
41
}
38
42
}
39
43
}
40
44
41
45
@keyframes popup- fade - in {
42
46
from {
43
47
opacity : 0 ;
44
- backdrop-filter : none ;
45
48
}
46
49
47
50
to {
48
51
opacity : 1 ;
52
+ }
53
+ }
54
+
55
+ @keyframes popup- blur- background {
56
+ from {
57
+ backdrop-filter : none ;
58
+ }
59
+
60
+ to {
49
61
backdrop-filter : blur (2px );
50
62
}
51
63
}
Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ import useParameterlessCallback from '../../hooks/useParameterlessCallback';
4
4
import useListener from '../../hooks/useListener' ;
5
5
import './Popup.less' ;
6
6
7
+ export interface PopupData {
8
+ title : string ;
9
+ hideTitle ?: boolean ;
10
+ content : React . ReactNode ;
11
+ keys ?: Record < string , ( ) => void > ;
12
+ }
13
+
7
14
interface PropsT {
8
- data : null | {
9
- title : string ;
10
- content : React . ReactNode ;
11
- keys ?: Record < string , ( ) => void > ;
12
- } ;
15
+ data : PopupData | null ;
13
16
onClose ?: ( ) => void ;
14
17
}
15
18
@@ -66,7 +69,7 @@ export default ({
66
69
contentRef = { setModal }
67
70
aria = { { labelledby : 'modal-heading' } }
68
71
>
69
- < h1 id = "modal-heading" > { data . title } </ h1 >
72
+ < h1 id = "modal-heading" className = { data . hideTitle ? 'hidden' : '' } > { data . title } </ h1 >
70
73
{ data . content }
71
74
</ Modal >
72
75
) ;
Original file line number Diff line number Diff line change 171
171
172
172
.has-focused .mood-item :not (.focused ):not (.editing ):not (.done ) {
173
173
opacity : 0.7 ;
174
+ transition : transform 0.1s ease , box- shadow 0.1s ease ;
175
+
176
+ .message :not (:disabled ) {
177
+ cursor : pointer ;
178
+ }
179
+ }
180
+
181
+ .multi-column.has-focused .mood-item :not (.focused ):not (.editing ):not (.done ):hover {
182
+ transform : translate (0 , -1px );
183
+ box-shadow : 0 2px 2px rgba (0 , 0 , 0 , 0.2 );
174
184
}
175
185
176
186
.archive .mood-item.done {
Original file line number Diff line number Diff line change 18
18
19
19
.qr-code {
20
20
display : block ;
21
- width : 350px ;
22
- max-width : ~ " calc(min(100%, 50vh))" ;
21
+ width : ~ " calc(80vh - 52px - 3.2em)" ;
22
+ min-width : 350px ;
23
+ max-width : ~ " calc(100vw - 96px)" ;
23
24
margin : 0 auto ;
24
25
}
25
26
26
27
.dialog-options {
28
+ margin-top : 0 ;
27
29
text-align : center ;
28
30
}
29
31
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type { Retro } from 'refacto-entities';
8
8
import type { RetroPagePropsT } from '../RetroRouter' ;
9
9
import ArchivePopup from './ArchivePopup' ;
10
10
import Header from '../common/Header' ;
11
- import Popup from '../common/Popup' ;
11
+ import Popup , { PopupData } from '../common/Popup' ;
12
12
import useBoundCallback from '../../hooks/useBoundCallback' ;
13
13
import useWindowSize from '../../hooks/env/useWindowSize' ;
14
14
import { clearCovered } from '../../actions/retro' ;
@@ -76,7 +76,7 @@ export default memo(({
76
76
( OPTIONS . enableMobileFacilitation . read ( retro . options ) )
77
77
) ;
78
78
79
- let archivePopup = null ;
79
+ let archivePopup : PopupData | null = null ;
80
80
if ( retroDispatch && archivePopupVisible ) {
81
81
archivePopup = {
82
82
title : 'Create Archive' ,
@@ -93,10 +93,11 @@ export default memo(({
93
93
} ;
94
94
}
95
95
96
- let invitePopup = null ;
96
+ let invitePopup : PopupData | null = null ;
97
97
if ( invitePopupVisible ) {
98
98
invitePopup = {
99
99
title : 'Invite' ,
100
+ hideTitle : true ,
100
101
content : ( < InvitePopup onClose = { hideInvitePopup } /> ) ,
101
102
keys : {
102
103
Enter : hideInvitePopup ,
You can’t perform that action at this time.
0 commit comments