Skip to content

Commit 2822d81

Browse files
authored
Merge pull request #7811 from IgniteUI/mpopov/list-items-background
Fix list items background transparency
2 parents ff45026 + 45e8266 commit 2822d81

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

projects/igniteui-angular/src/lib/core/styles/themes/schemas/dark/_list.scss

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,34 @@ $_dark-bootstrap-list: extend(
5454

5555
/// Generates a dark indigo list schema
5656
/// @type {Map}
57+
/// @property {Map} header-text-color [igx-contrast-color: 'surface'] - The list header text color.
58+
/// @property {Map} item-background-hover [igx-color: ('primary', 500), rgba: .5, to-opaque: (igx-color: 'surface')] - The list item hover background.
59+
/// @property {Map} item-background-active [igx-color: ('primary', 500), rgba: .5, to-opaque: (igx-color: 'surface')] - The active list item background color.
60+
5761
/// @requires {function} extend
5862
/// @requires $_indigo-list
5963
$_dark-indigo-list: extend(
6064
$_indigo-list,
6165
(
62-
header-text-color: #fff,
66+
header-text-color: (
67+
igx-contrast-color: 'surface'
68+
),
6369

6470
item-background-hover: (
6571
igx-color: ('primary', 500),
66-
rgba: .5
72+
rgba: .5,
73+
to-opaque: (
74+
igx-color: 'surface',
75+
)
76+
6777
),
6878

6979
item-background-active: (
7080
igx-color: ('primary', 500),
71-
rgba: .5
81+
rgba: .5,
82+
to-opaque: (
83+
igx-color: 'surface',
84+
)
7285
)
7386
)
7487
);

projects/igniteui-angular/src/lib/core/styles/themes/schemas/light/_list.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ $_bootstrap-list: extend(
178178
///
179179
/// @property {Map} header-text-color [igx-color: ('primary', 500)] - The list header text color.
180180
///
181-
/// @property {Map} item-background-hover [igx-color: ('primary', 500), rgba: .15] - The list item hover background.
182-
/// @property {Map} item-background-active [igx-color: ('primary', 500), rgba: .15] - The active list item background color.
181+
/// @property {Map} item-background-hover [igx-color: ('primary', 500), rgba: .15, to-opaque: (igx-color: 'surface')] - The list item hover background.
182+
/// @property {Map} item-background-active [ igx-color: ('primary', 500), rgba: .15, to-opaque: (igx-color: 'surface')] - The active list item background color.
183183
///
184184
/// @property {Map} item-text-color [igx-color: ('grays', 900)] - The list item text color.
185185
/// @property {Map} item-text-color-hover [igx-color: ('grays', 900)] - The list item text color.
@@ -214,12 +214,18 @@ $_indigo-list: extend(
214214

215215
item-background-hover: (
216216
igx-color: ('primary', 500),
217-
rgba: .15
217+
rgba: .15,
218+
to-opaque: (
219+
igx-color: 'surface',
220+
)
218221
),
219222

220223
item-background-active: (
221224
igx-color: ('primary', 500),
222-
rgba: .15
225+
rgba: .15,
226+
to-opaque: (
227+
igx-color: 'surface',
228+
)
223229
),
224230

225231
item-text-color: (

0 commit comments

Comments
 (0)