Skip to content

Commit 03485f6

Browse files
committed
chore(*): adding compatibility for igx-column-hiding
1 parent 9a1caa1 commit 03485f6

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

projects/igniteui-angular/src/lib/core/styles/components/column-actions/_column-actions-theme.scss

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,41 @@
5252
));
5353
}
5454

55+
////
56+
/// @group themes
57+
/// @access public
58+
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
59+
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
60+
////
61+
62+
/// Column hiding Theme
63+
/// The function is deprecated and will be removed in future versions. Use igx-column-actions-theme instead.
64+
/// @param {Map} $palette [$default-palette] - The palette used as basis for styling the component.
65+
/// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
66+
/// @param {Color} $title-color [null]- The text color used for the title of the list.
67+
/// @param {Color} $background-color [null] - The background color of the panel.
68+
///
69+
/// @requires $default-palette
70+
/// @requires $light-schema
71+
/// @requires apply-palette
72+
/// @requires extend
73+
/// @requires text-contrast
74+
///
75+
/// @example scss Change the title color
76+
/// $column-hiding-theme: igx-column-hiding-theme($title-color: black);
77+
/// // Pass the theme to the igx-column-hiding component mixin
78+
/// @include igx-column-hiding($column-hiding-theme);
79+
////
80+
@function igx-column-hiding-theme(
81+
$palette: $default-palette,
82+
$schema: $light-schema,
83+
84+
$title-color: null,
85+
$background-color: null
86+
) {
87+
@return igx-column-actions-theme($palette, $schema, $title-color, $background-color);
88+
}
89+
5590
/// @param {Map} $theme - The theme used to style the component.
5691
/// @requires {mixin} igx-root-css-vars
5792
/// @requires rem
@@ -98,6 +133,16 @@
98133
}
99134
}
100135

136+
/// A wrapper of the igx-column-actions mixin.
137+
/// Provides compatibility for applications styling the deprecated IgxColumnHiding and IgxColumnPinning components.
138+
/// @param {Map} $theme - The theme used to style the component.
139+
/// @requires {mixin} igx-root-css-vars
140+
/// @requires rem
141+
/// @requires --var
142+
@mixin igx-column-hiding($theme) {
143+
@include igx-column-actions($theme);
144+
}
145+
101146
/// Adds typography styles for the igx-column-actions component.
102147
/// Uses the 'subtitle-1'
103148
/// category from the typographic scale.

0 commit comments

Comments
 (0)