@@ -44,6 +44,9 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
4444}
4545
4646.#{$eccgui } -overviewitem__item {
47+ --eccgui-overviewitem-color-background : transparent ;
48+ --eccgui-overviewitem-color-text : inherit ;
49+
4750 display : flex ;
4851 flex-flow : row nowrap ;
4952 place-content : stretch flex-start ;
@@ -59,21 +62,54 @@ $eccgui-size-overviewitem-line-typo-large-lineheight: $eccgui-size-typo-subtitle
5962 // height: mini-units(6);
6063 min-height : mini-units (6 );
6164 max-height : mini-units (6 );
65+ color : var (--eccgui-overviewitem-color-text );
66+ background-color : var (--eccgui-overviewitem-color-background );
6267
6368 & [tabindex ]:not ([tabindex = " -1" ]) {
6469 cursor : pointer ;
6570 }
6671
6772 .#{$ns } -menu > & {
6873 // TODO: discuss if this should be enabled via explicit element property
69- // remove this because reason was not clear and it lead to wrong display
70- // @extend .#{$ns}-menu-item;
7174
7275 & --active {
7376 color : $eccgui-color-accent-contrast ;
7477 background-color : $eccgui-color-accent ;
7578 }
7679 }
80+
81+ & .#{$eccgui } -intent--info {
82+ --eccgui-overviewitem-color-background : #{$eccgui-color-info-background } ;
83+ --eccgui-overviewitem-color-text : #{$eccgui-color-info-text } ;
84+ }
85+ & .#{$eccgui } -intent--success {
86+ --eccgui-overviewitem-color-background : #{$eccgui-color-success-background } ;
87+ --eccgui-overviewitem-color-text : #{$eccgui-color-success-text } ;
88+ }
89+ & .#{$eccgui } -intent--warning {
90+ --eccgui-overviewitem-color-background : #{$eccgui-color-warning-background } ;
91+ --eccgui-overviewitem-color-text : #{$eccgui-color-warning-text } ;
92+ }
93+ & .#{$eccgui } -intent--danger {
94+ --eccgui-overviewitem-color-background : #{$eccgui-color-danger-background } ;
95+ --eccgui-overviewitem-color-text : #{$eccgui-color-danger-text } ;
96+ }
97+ & .#{$eccgui } -intent--neutral {
98+ --eccgui-overviewitem-color-background : #{$eccgui-color-workspace-background } ;
99+ --eccgui-overviewitem-color-text : #{$eccgui-color-workspace-text } ;
100+ }
101+ & .#{$eccgui } -intent--neutral {
102+ --eccgui-overviewitem-color-background : #{$eccgui-color-workspace-background } ;
103+ --eccgui-overviewitem-color-text : #{$eccgui-color-workspace-text } ;
104+ }
105+ & .#{$eccgui } -intent--primary {
106+ --eccgui-overviewitem-color-background : #{eccgui-color-var (" identity" , " brand" , " 100" )} ;
107+ --eccgui-overviewitem-color-text : #{eccgui-color-var (" identity" , " brand" , " 900" )} ;
108+ }
109+ & .#{$eccgui } -intent--accent {
110+ --eccgui-overviewitem-color-background : #{eccgui-color-var (" identity" , " accent" , " 100" )} ;
111+ --eccgui-overviewitem-color-text : #{eccgui-color-var (" identity" , " accent" , " 900" )} ;
112+ }
77113}
78114
79115.#{$eccgui } -overviewitem__item--highdensity {
0 commit comments