Skip to content

Commit af37c7a

Browse files
authored
Merge pull request #7805 from IgniteUI/simeonoff/indigo-chip-fix
fix(chip): chip ghost background has low-contrast background
2 parents c92e20d + f412bdb commit af37c7a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ $_dark-bootstrap-chip: extend($_bootstrap-chip, $_base-dark-chip);
4040
/// Generates a dark indigo chip schema based on a mix of $_indigo-chip and $_base-dark-chip.
4141
/// @type {Map}
4242
/// @prop {Map} background [igx-color: ('grays', 500)] - The chip background color.
43+
/// @prop {Map} ghost-background [igx-color: ('grays', 300), to-opaque: (igx-color: 'surface')] - The chip ghost background color.
4344
/// @prop {Map} hover-background [igx-color: ('grays', 300)] - The chip hover background color.
4445
/// @prop {Map} focus-background [igx-color: ('grays', 300)] The focused chip background color.
4546
/// @requires extend
@@ -53,6 +54,14 @@ $_dark-indigo-chip: extend(
5354
igx-color: ('grays', 500)
5455
),
5556

57+
ghost-background: (
58+
igx-color: ('grays', 300),
59+
60+
to-opaque: (
61+
igx-color: 'surface',
62+
)
63+
),
64+
5665
hover-background: (
5766
igx-color: ('grays', 300)
5867
),

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ $_bootstrap-chip: extend(
214214
/// @prop {Number} border-radius [3px] - The border radius fraction used for chip component.
215215
/// @prop {Color} text-color [#fff] - The chip text color.
216216
/// @prop {Map} background [igx-color: ('grays', 600)] - The chip background color.
217+
/// @prop {Map} ghost-background [igx-color: ('grays', 800), to-opaque: (igx-color: 'surface')] - The chip ghost background color.
217218
/// @prop {Color} hover-text-color [#fff] - The chip text hover color.
218219
/// @prop {Map} hover-background [igx-color: ('grays', 800)] - The chip hover background color.
219220
/// @prop {Color} focus-text-color [#fff] The focused chip text color.
@@ -239,6 +240,14 @@ $_indigo-chip: extend(
239240
igx-color: ('grays', 600)
240241
),
241242

243+
ghost-background: (
244+
igx-color: ('grays', 800),
245+
246+
to-opaque: (
247+
igx-color: 'surface',
248+
)
249+
),
250+
242251
text-color: #fff,
243252

244253
hover-text-color: #fff,

0 commit comments

Comments
 (0)