File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 39
39
--anonymous-color : var (--anonymous-background );
40
40
--anonymous-border-radius : 0.25rem ;
41
41
--anonymous-opacity : 0 ;
42
+ --anonymous-user-select : none;
42
43
43
44
--visible-color : unset;
44
45
--visible-background : unset;
45
46
--visible-border-radius : unset;
46
47
--visible-opacity : 1 ;
48
+ --visible-user-select : unset;
47
49
48
50
--anonymizable-background : unset;
49
51
--anonymizable-color : unset;
50
52
--anonymizable-border-radius : unset;
51
53
--anonymizable-opacity : 1 ;
54
+ --anonymizable-user-select : unset;
52
55
}
53
56
54
57
html ,
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ const anomizedStyle = {
7
7
'--anonymizable-color' : 'var(--anonymous-color)' ,
8
8
'--anonymizable-border-radius' : 'var(--anonymous-border-radius)' ,
9
9
'--anonymizable-opacity' : 'var(--anonymous-opacity)' ,
10
+ '--anonymizable-user-select' : 'var(--anonymous-user-select)' ,
10
11
} as CSSProperties ;
11
12
12
13
const visibleStyle = {
13
14
'--anonymizable-background' : 'var(--visible-background)' ,
14
15
'--anonymizable-color' : 'var(--visible-color)' ,
15
16
'--anonymizable-border-radius' : 'var(--visible-border-radius)' ,
16
17
'--anonymizable-opacity' : 'var(--visible-opacity)' ,
18
+ '--anonymizable-user-select' : 'var(--visible-user-select)' ,
17
19
} as CSSProperties ;
18
20
19
21
export const AnonymiseringProvider = ( { children } : PropsWithChildren ) => {
Original file line number Diff line number Diff line change 2
2
color : var (--anonymizable-color );
3
3
background-color : var (--anonymizable-color );
4
4
border-radius : var (--anonymizable-border-radius );
5
+ user-select : var (--anonymizable-user-select );
5
6
width : fit-content;
6
7
}
7
8
8
- .Anonymous ::selection ,
9
9
.Anonymous * {
10
- opacity : 1 ;
10
+ opacity : var (--anonymizable-opacity );
11
+ user-select : var (--anonymizable-user-select );
11
12
}
You can’t perform that action at this time.
0 commit comments