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 66 EuiText ,
77 EuiSpacer ,
88} from '@elastic/eui'
9+ import cx from 'classnames'
910import parse from 'html-react-parser'
1011
1112import { IConsent } from '../ConsentsSettings'
@@ -32,7 +33,12 @@ const ConsentOption = (props: Props) => {
3233 < EuiFlexItem key = { consent . agreementName } >
3334 { isSettingsPage && consent . description && (
3435 < >
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+ >
3642 { parse ( consent . description ) }
3743 </ EuiText >
3844 < EuiSpacer size = "m" />
@@ -51,9 +57,16 @@ const ConsentOption = (props: Props) => {
5157 />
5258 </ EuiFlexItem >
5359 < 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 >
5563 { ! 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+ >
5770 { parse ( consent . description ) }
5871 </ EuiText >
5972 ) }
Original file line number Diff line number Diff line change 9696 }
9797}
9898
99+ .smallText.disabled {
100+ color : var (--disabledLabelColor ) !important ;
101+ }
102+
99103:global(.euiOverlayMask ) {
100104 background : none !important ;
101105}
Original file line number Diff line number Diff line change 1818 }
1919 }
2020 .euiSwitch__button :disabled {
21- opacity : 50% ;
22-
23- .euiSwitch__icon {
24- display : none ;
25- }
21+ opacity : 0.5 ;
2622 }
2723}
2824
Original file line number Diff line number Diff line change 9696 --browserComponentActive : #{$browserComponentActive } ;
9797 --browserTreeNodeOpen : #{$browserTreeNodeOpen } ;
9898 --defaultGreenColor : #{$defaultGreenColor } ;
99+ --disabledLabelColor : #{$disabledLabelColor } ;
99100
100101 --iconsDefaultColor : #{$iconsDefaultColor } ;
101102 --iconsDefaultHoverColor : #{$iconsDefaultHoverColor } ;
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ $iconsDefaultHoverColor: #dfe5ef;
6262$separatorColor : #3d3d3d ;
6363$separatorNavigationColor : #465282 ;
6464$separatorDropdownColor : #8b90a3 ;
65+ $disabledLabelColor : #898A90 ;
6566
6667$buttonSecondaryHoverColor : #364da8 ;
6768$buttonSecondaryTextColor : #dfe5ef ;
Original file line number Diff line number Diff line change 9898 --browserComponentActive : #{$browserComponentActive } ;
9999 --browserTreeNodeOpen : #{$browserTreeNodeOpen } ;
100100 --defaultGreenColor : #{$defaultGreenColor } ;
101+ --disabledLabelColor : #{$disabledLabelColor } ;
101102
102103 --iconsDefaultColor : #{$iconsDefaultColor } ;
103104 --iconsDefaultHoverColor : #{$iconsDefaultHoverColor } ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ $iconsDefaultHoverColor: #173369;
5959$separatorColor : #cdd7e6 ;
6060$separatorNavigationColor : #465282 ;
6161$separatorDropdownColor : #8b90a3 ;
62+ $disabledLabelColor : #527298 ;
6263
6364$buttonSecondaryHoverColor : #2848d7 ;
6465$buttonSecondaryTextColor : #243dac ;
You can’t perform that action at this time.
0 commit comments