Skip to content

Commit d444be0

Browse files
author
MPopov
committed
feat(dev-demos):
1. fix lint error 2. remove unused files 3. use generated class for colors
1 parent 925cc8e commit d444be0

File tree

6 files changed

+20
-28
lines changed

6 files changed

+20
-28
lines changed

src/app/app.component.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -516,14 +516,10 @@ export class AppComponent implements OnInit {
516516
iconService.registerFontSetAlias('fa-solid', 'fa');
517517
iconService.registerFontSetAlias('fa-brands', 'fab');
518518

519-
router.events.pipe(
520-
filter(event => event instanceof NavigationEnd)
521-
).subscribe(event => {
522-
for(let component of this.componentLinks) {
523-
console.log(component.link);
524-
console.log(router.url);
525-
if(component.link === router.url) {
526-
this.urlString = component.name
519+
router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(event => {
520+
for (const component of this.componentLinks) {
521+
if (component.link === router.url) {
522+
this.urlString = component.name;
527523
}
528524
}
529525
});

src/app/pageHeading/pageHeading.styles.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../../projects/igniteui-angular/src/lib/core/styles/base/index';
2-
@import '../../styles/app-palettes';
32

43
:host {
54
display: block;
@@ -26,11 +25,11 @@
2625
align-items: center;
2726
height: rem(90px);
2827
padding: 0 rem(16px);
29-
background: igx-color($palette, 'primary');
28+
background: var(--igx-primary-500);
3029
overflow: hidden;
3130

3231
.title {
33-
color: igx-contrast-color($palette, 'primary');
32+
color: var(--igx-primary-500-contrast);
3433
margin: 0;
3534
text-transform: capitalize;
3635
white-space: nowrap;

src/app/styleguide/colors/color.sample.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ <h4 class="color-title igx-{{color.name}}-500">{{color.name}}</h4>
1010
</div>
1111
</div>
1212
</div>
13-
1413
</div>
1514
</article>
1615

src/app/styleguide/colors/color.sample.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../../../projects/igniteui-angular/src/lib/core/styles/themes/utilities';
2-
@import '../../../styles/app-palettes';
32
@import'../../../styles/igniteui-theme.scss';
43

54
.sample-wrapper {
@@ -35,8 +34,6 @@
3534

3635
.color-container {
3736
@include igx-color-classes('background', $palette: $palette);
38-
39-
color: #fff;
4037
}
4138

4239
.color-title {
@@ -53,19 +50,23 @@
5350
padding: 8px 16px;
5451
}
5552

56-
.igx-success-500{
53+
.igx-success-500 {
5754
background: var(--igx-success-500);
55+
color: var(--igx-success-500-contrast);
5856
}
5957

60-
.igx-info-500{
58+
.igx-info-500 {
6159
background: var(--igx-info-500);
60+
color: var(--igx-info-500-contrast);
6261
}
6362

64-
.igx-warn-500{
63+
.igx-warn-500 {
6564
background: var(--igx-warn-500);
65+
color: var(--igx-warn-500-contrast);
6666
}
6767

68-
.igx-error-500{
68+
.igx-error-500 {
6969
background: var(--igx-error-500);
70+
color: var(--igx-error-500-contrast);
7071
}
7172

src/styles/_app-palettes.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/styles/igniteui-theme.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
22
@import url('https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700');
3-
@import 'app-palettes';
3+
@import '../../projects/igniteui-angular/src/lib/core/styles/themes/index';
44
@import 'mixins';
55
@import 'app-layout';
66

7+
$palette: $dark-indigo-palette;
8+
$schema: $dark-indigo-schema;
9+
710
/* autoprefixer grid: on */
811
$igx-background-color: darken(igx-color($palette, 'surface'), 5%);
912
$igx-foreground-color: igx-color($palette, 'grays', 900);
@@ -34,3 +37,5 @@ body {
3437
}
3538
}
3639

40+
41+

0 commit comments

Comments
 (0)