Skip to content

Commit 7821f9a

Browse files
committed
refactor(themes): don't include mixins for shape modifiers
1 parent c042313 commit 7821f9a

File tree

3 files changed

+53
-27
lines changed

3 files changed

+53
-27
lines changed

projects/igniteui-angular/src/lib/core/styles/themes/_index.scss

-26
Original file line numberDiff line numberDiff line change
@@ -292,32 +292,6 @@
292292
);
293293
}
294294

295-
/// Creates a global theme that can be used with light backgrounds.
296-
/// @param {Map} $palette - An igx-palette to be used by the global theme.
297-
/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles.
298-
/// @param {Boolean} $legacy-support - Turn off support for IE11, allowing you to use css variables to style components.
299-
@mixin igx-light-square-theme(
300-
$palette,
301-
$exclude: (),
302-
$legacy-support: true
303-
) {
304-
$primary: igx-color($palette, 'primary');
305-
$secondary: igx-color($palette, 'secondary');
306-
$surface: igx-color($palette, 'surface');
307-
308-
@include igx-theme(
309-
$palette: igx-palette(
310-
$primary,
311-
$secondary,
312-
$surface: if($surface != #fff, $surface, #fff),
313-
$grays: #000
314-
),
315-
$schema: $light-square-schema,
316-
$legacy-support: $legacy-support,
317-
$exclude: $exclude
318-
);
319-
}
320-
321295
/// Creates a global theme that can be used with dark backgrounds.
322296
/// @param {Map} $palette - An igx-palette to be used by the global theme.
323297
/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles.

src/app/pageHeading/pageHeading.styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $hamburger-theme: igx-button-theme(
1515
);
1616

1717
:host ::ng-deep {
18-
@include igx-button($hamburger-theme);
18+
@include igx-button($hamburger-theme);
1919

2020
.hamburger {
2121
margin-right: 32px;

src/styles/_mixins.scss

+52
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,55 @@
2424
background-color: $scrollbar-thumb;
2525
}
2626
}
27+
28+
/// Creates a global theme that can be used with light backgrounds.
29+
/// @param {Map} $palette - An igx-palette to be used by the global theme.
30+
/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles.
31+
/// @param {Boolean} $legacy-support - Turn off support for IE11, allowing you to use css variables to style components.
32+
@mixin igx-light-square-theme(
33+
$palette,
34+
$exclude: (),
35+
$legacy-support: true
36+
) {
37+
$primary: igx-color($palette, 'primary');
38+
$secondary: igx-color($palette, 'secondary');
39+
$surface: igx-color($palette, 'surface');
40+
41+
@include igx-theme(
42+
$palette: igx-palette(
43+
$primary,
44+
$secondary,
45+
$surface: if($surface != #fff, $surface, #fff),
46+
$grays: #000
47+
),
48+
$schema: $light-square-schema,
49+
$legacy-support: $legacy-support,
50+
$exclude: $exclude
51+
);
52+
}
53+
54+
/// Creates a global theme that can be used with light backgrounds.
55+
/// @param {Map} $palette - An igx-palette to be used by the global theme.
56+
/// @param {List} $exclude [( )] - A list of igx components to be excluded from the global theme styles.
57+
/// @param {Boolean} $legacy-support - Turn off support for IE11, allowing you to use css variables to style components.
58+
@mixin igx-light-square-theme(
59+
$palette,
60+
$exclude: (),
61+
$legacy-support: true
62+
) {
63+
$primary: igx-color($palette, 'primary');
64+
$secondary: igx-color($palette, 'secondary');
65+
$surface: igx-color($palette, 'surface');
66+
67+
@include igx-theme(
68+
$palette: igx-palette(
69+
$primary,
70+
$secondary,
71+
$surface: if($surface != #fff, $surface, #fff),
72+
$grays: #000
73+
),
74+
$schema: $light-square-schema,
75+
$legacy-support: $legacy-support,
76+
$exclude: $exclude
77+
);
78+
}

0 commit comments

Comments
 (0)