File tree Expand file tree Collapse file tree 7 files changed +25
-8
lines changed
components/consents-settings Expand file tree Collapse file tree 7 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 6
6
EuiText ,
7
7
EuiSpacer ,
8
8
} from '@elastic/eui'
9
+ import cx from 'classnames'
9
10
import parse from 'html-react-parser'
10
11
11
12
import { IConsent } from '../ConsentsSettings'
@@ -32,7 +33,12 @@ const ConsentOption = (props: Props) => {
32
33
< EuiFlexItem key = { consent . agreementName } >
33
34
{ isSettingsPage && consent . description && (
34
35
< >
35
- < EuiText size = "s" className = { styles . smallText } color = "subdued" style = { { marginTop : '12px' } } >
36
+ < EuiText
37
+ size = "s"
38
+ className = { styles . smallText }
39
+ color = "subdued"
40
+ style = { { marginTop : '12px' } }
41
+ >
36
42
{ parse ( consent . description ) }
37
43
</ EuiText >
38
44
< EuiSpacer size = "m" />
@@ -51,9 +57,16 @@ const ConsentOption = (props: Props) => {
51
57
/>
52
58
</ EuiFlexItem >
53
59
< EuiFlexItem grow = { false } >
54
- < EuiText className = { styles . label } > { parse ( consent . label ) } </ EuiText >
60
+ < EuiText className = { cx ( { [ styles . disabled ] : consent ?. disabled , [ styles . smallText ] : true } ) } >
61
+ { parse ( consent . label ) }
62
+ </ EuiText >
55
63
{ ! isSettingsPage && consent . description && (
56
- < EuiText size = "s" className = { styles . smallText } color = "subdued" style = { { marginTop : '12px' } } >
64
+ < EuiText
65
+ size = "s"
66
+ className = { styles . smallText }
67
+ color = "subdued"
68
+ style = { { marginTop : '12px' } }
69
+ >
57
70
{ parse ( consent . description ) }
58
71
</ EuiText >
59
72
) }
Original file line number Diff line number Diff line change 96
96
}
97
97
}
98
98
99
+ .smallText.disabled {
100
+ color : var (--disabledLabelColor ) !important ;
101
+ }
102
+
99
103
:global(.euiOverlayMask ) {
100
104
background : none !important ;
101
105
}
Original file line number Diff line number Diff line change 18
18
}
19
19
}
20
20
.euiSwitch__button :disabled {
21
- opacity : 50% ;
22
-
23
- .euiSwitch__icon {
24
- display : none ;
25
- }
21
+ opacity : 0.5 ;
26
22
}
27
23
}
28
24
Original file line number Diff line number Diff line change 96
96
--browserComponentActive : #{$browserComponentActive } ;
97
97
--browserTreeNodeOpen : #{$browserTreeNodeOpen } ;
98
98
--defaultGreenColor : #{$defaultGreenColor } ;
99
+ --disabledLabelColor : #{$disabledLabelColor } ;
99
100
100
101
--iconsDefaultColor : #{$iconsDefaultColor } ;
101
102
--iconsDefaultHoverColor : #{$iconsDefaultHoverColor } ;
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ $iconsDefaultHoverColor: #dfe5ef;
62
62
$separatorColor : #3d3d3d ;
63
63
$separatorNavigationColor : #465282 ;
64
64
$separatorDropdownColor : #8b90a3 ;
65
+ $disabledLabelColor : #898A90 ;
65
66
66
67
$buttonSecondaryHoverColor : #364da8 ;
67
68
$buttonSecondaryTextColor : #dfe5ef ;
Original file line number Diff line number Diff line change 98
98
--browserComponentActive : #{$browserComponentActive } ;
99
99
--browserTreeNodeOpen : #{$browserTreeNodeOpen } ;
100
100
--defaultGreenColor : #{$defaultGreenColor } ;
101
+ --disabledLabelColor : #{$disabledLabelColor } ;
101
102
102
103
--iconsDefaultColor : #{$iconsDefaultColor } ;
103
104
--iconsDefaultHoverColor : #{$iconsDefaultHoverColor } ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ $iconsDefaultHoverColor: #173369;
59
59
$separatorColor : #cdd7e6 ;
60
60
$separatorNavigationColor : #465282 ;
61
61
$separatorDropdownColor : #8b90a3 ;
62
+ $disabledLabelColor : #527298 ;
62
63
63
64
$buttonSecondaryHoverColor : #2848d7 ;
64
65
$buttonSecondaryTextColor : #243dac ;
You can’t perform that action at this time.
0 commit comments