|
69 | 69 | border-radius: var-get($theme, 'border-radius'); |
70 | 70 |
|
71 | 71 | @if $variant == 'bootstrap' { |
72 | | - border: rem(1px) solid var-get($theme, 'border-color'); |
| 72 | + border: var-get($theme, 'border-width') solid var-get($theme, 'border-color'); |
73 | 73 | } |
74 | 74 |
|
75 | 75 | &:focus-visible { |
|
137 | 137 | justify-content: center; |
138 | 138 | border-radius: var-get($theme, 'item-border-radius'); |
139 | 139 | color: var-get($theme, 'item-text-color'); |
| 140 | + border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color'); |
140 | 141 |
|
141 | | - @if $bootstrap-theme or $variant == 'fluent' { |
142 | | - border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color'); |
143 | | - |
144 | | - &:last-of-type { |
145 | | - border-bottom: none; |
146 | | - } |
| 142 | + &:last-of-type { |
| 143 | + border-bottom: none; |
147 | 144 | } |
| 145 | + } |
148 | 146 |
|
149 | | - &:hover { |
| 147 | + %igx-list-item-base:not(%igx-list-item-base--selected) { |
| 148 | + &:hover, |
| 149 | + &:focus-within { |
150 | 150 | %igx-list__item-lines { |
151 | 151 | color: currentColor; |
152 | 152 | } |
153 | 153 |
|
154 | | - %igx-list__item-line-title { |
155 | | - color: var-get($theme, 'item-title-color-hover'); |
156 | | - } |
| 154 | + %igx-list-item-content:not(%igx-list-item-content--active) { |
| 155 | + color: var-get($theme, 'item-text-color-hover'); |
| 156 | + background: var-get($theme, 'item-background-hover'); |
157 | 157 |
|
158 | | - %igx-list__item-line-subtitle { |
159 | | - color: var-get($theme, 'item-subtitle-color-hover'); |
160 | | - } |
| 158 | + %igx-list__item-line-title { |
| 159 | + color: var-get($theme, 'item-title-color-hover'); |
| 160 | + } |
161 | 161 |
|
162 | | - %igx-list__item-actions { |
163 | | - color: var-get($theme, 'item-action-color-hover'); |
| 162 | + %igx-list__item-line-subtitle { |
| 163 | + color: var-get($theme, 'item-subtitle-color-hover'); |
| 164 | + } |
164 | 165 |
|
165 | | - igx-icon, |
166 | | - igc-icon { |
167 | | - color: var-get($theme, 'item-action-color-hover') |
| 166 | + %igx-list__item-actions { |
| 167 | + color: var-get($theme, 'item-action-color-hover'); |
| 168 | + |
| 169 | + igx-icon, |
| 170 | + igc-icon { |
| 171 | + color: var-get($theme, 'item-action-color-hover') |
| 172 | + } |
168 | 173 | } |
169 | | - } |
170 | 174 |
|
171 | | - %igx-list__item-thumbnail { |
172 | | - color: var-get($theme, 'item-thumbnail-color-hover'); |
| 175 | + %igx-list__item-thumbnail { |
| 176 | + color: var-get($theme, 'item-thumbnail-color-hover'); |
173 | 177 |
|
174 | | - igx-icon, |
175 | | - igc-icon { |
176 | | - color: var-get($theme, 'item-thumbnail-color-hover') |
| 178 | + igx-icon, |
| 179 | + igc-icon { |
| 180 | + color: var-get($theme, 'item-thumbnail-color-hover') |
| 181 | + } |
177 | 182 | } |
178 | 183 | } |
179 | 184 | } |
|
256 | 261 | background: var-get($theme, 'item-background'); |
257 | 262 | z-index: 2; |
258 | 263 | gap: if($variant == 'indigo', rem(8px), rem(16px)); |
259 | | - |
260 | | - &:hover, |
261 | | - &:focus-within { |
262 | | - color: var-get($theme, 'item-text-color-hover'); |
263 | | - background: var-get($theme, 'item-background-hover'); |
264 | | - } |
265 | 264 | } |
266 | 265 |
|
267 | 266 | %igx-list-header, |
|
285 | 284 | --component-size: #{if($variant == 'indigo', 2, var(--list-size))}; |
286 | 285 | } |
287 | 286 |
|
| 287 | + igx-icon, |
| 288 | + igc-icon { |
| 289 | + color: var-get($theme, 'item-thumbnail-color'); |
| 290 | + } |
| 291 | + |
288 | 292 | &:empty { |
289 | 293 | display: none; |
290 | 294 | } |
|
0 commit comments