Skip to content

Commit 6b3b664

Browse files
authored
fix(themes): styles not working for Angular Elements components (#16266)
1 parent 0a7c7e3 commit 6b3b664

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+59
-89
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@types/source-map": "0.5.2",
7676
"express": "^5.1.0",
7777
"fflate": "^0.8.1",
78-
"igniteui-theming": "^20.0.0",
78+
"igniteui-theming": "^21.0.0",
7979
"igniteui-trial-watermark": "^3.1.0",
8080
"lodash-es": "^4.17.21",
8181
"rxjs": "^7.8.2",
@@ -120,7 +120,7 @@
120120
"hammerjs": "^2.0.8",
121121
"ig-typedoc-theme": "^6.0.0",
122122
"igniteui-dockmanager": "^1.17.0",
123-
"igniteui-sassdoc-theme": "^2.0.2",
123+
"igniteui-sassdoc-theme": "^2.1.0",
124124
"igniteui-webcomponents": "6.2.1",
125125
"jasmine": "^5.6.0",
126126
"jasmine-core": "^5.6.0",

projects/igniteui-angular-elements/src/themes/_util.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ $elements-selector-prefix: 'igc';
7272
/// @return {String} - Updated selector(s) with `igc-` prefixed equivalents
7373
@function updateSelectors($selector) {
7474
$result: ();
75-
$selectors: string.split($selector, ", ");
7675

77-
@each $sel in $selectors {
76+
@each $sel in $selector {
7877
$result: list.append($result, $sel, comma);
7978

8079
@if string.index($sel, 'igx-') == 1 {

projects/igniteui-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"tslib": "^2.3.0",
7474
"igniteui-trial-watermark": "^3.1.0",
7575
"lodash-es": "^4.17.21",
76-
"igniteui-theming": "^20.0.0",
76+
"igniteui-theming": "^21.0.0",
7777
"@igniteui/material-icons-extended": "^3.1.0"
7878
},
7979
"peerDependencies": {

projects/igniteui-angular/src/lib/core/styles/components/avatar/_avatar-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @see {mixin} css-vars
77
/// @param {Map} $theme - The theme used to style the component.
88
@mixin avatar($theme) {
9-
@include css-vars($theme, 'igx-avatar');
9+
@include css-vars($theme);
1010

1111
$variant: map.get($theme, '_meta', 'theme');
1212

projects/igniteui-angular/src/lib/core/styles/components/badge/_badge-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/// @see {mixin} css-vars
66
/// @param {Map} $theme - The theme used to style the component.
77
@mixin badge($theme) {
8-
@include css-vars($theme, 'igx-badge');
8+
@include css-vars($theme);
99

1010
$variant: map.get($theme, '_meta', 'theme');
1111

projects/igniteui-angular/src/lib/core/styles/components/banner/_banner-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/// @see {mixin} css-vars
66
/// @param {Map} $theme - The theme used to style the component.
77
@mixin banner($theme) {
8-
@include css-vars($theme, 'igx-banner, .igx-banner');
8+
@include css-vars($theme);
99
$variant: map.get($theme, '_meta', 'theme');
1010

1111
%igx-banner-host {

projects/igniteui-angular/src/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @see {mixin} css-vars
77
/// @param {Map} $theme - The theme used to style the component.
88
@mixin bottom-nav($theme) {
9-
@include css-vars($theme, 'igx-bottom-nav');
9+
@include css-vars($theme);
1010

1111
$variant: map.get($theme, '_meta', 'theme');
1212
$menu-height: rem(56px);

projects/igniteui-angular/src/lib/core/styles/components/button-group/_button-group-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @see {mixin} css-vars
77
/// @param {Map} $theme - The theme used to style the component.
88
@mixin button-group($theme) {
9-
@include css-vars($theme, 'igx-buttongroup');
9+
@include css-vars($theme);
1010

1111
$group-item-border-thickness: rem(1px);
1212
$group-items-margin: rem(10px, 16px);

projects/igniteui-angular/src/lib/core/styles/components/calendar/_calendar-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/// @see {mixin} css-vars
77
/// @param {Map} $theme - The theme used to style the component.
88
@mixin calendar($theme) {
9-
@include css-vars($theme, 'igx-calendar, .igx-days-view--standalone, .igx-calendar-view--standalone, .igx-date-picker, .igx-month-picker');
9+
@include css-vars($theme);
1010

1111
$variant: map.get($theme, '_meta', 'theme');
1212
$bootstrap-theme: $variant == 'bootstrap';

0 commit comments

Comments
 (0)