|
52 | 52 | )); |
53 | 53 | } |
54 | 54 |
|
| 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 | + |
55 | 90 | /// @param {Map} $theme - The theme used to style the component. |
56 | 91 | /// @requires {mixin} igx-root-css-vars |
57 | 92 | /// @requires rem |
|
98 | 133 | } |
99 | 134 | } |
100 | 135 |
|
| 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 | + |
101 | 146 | /// Adds typography styles for the igx-column-actions component. |
102 | 147 | /// Uses the 'subtitle-1' |
103 | 148 | /// category from the typographic scale. |
|
0 commit comments