Skip to content

Commit 66bd5d6

Browse files
authored
feat(progress): update values to be used from schemas (#1582)
1 parent e206e62 commit 66bd5d6

File tree

8 files changed

+21
-37
lines changed

8 files changed

+21
-37
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"globby": "^14.1.0",
8080
"husky": "^9.1.7",
8181
"ig-typedoc-theme": "^6.0.0",
82-
"igniteui-theming": "^15.1.1",
82+
"igniteui-theming": "^16.0.0",
8383
"keep-a-changelog": "^2.6.1",
8484
"lint-staged": "^15.4.3",
8585
"lit-analyzer": "^2.0.3",

src/components/progress/themes/circular/shared/circular.progress.common.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ $theme: $material;
3333
}
3434
}
3535

36-
@include gradient-variant('danger', color(error, 500));
37-
@include gradient-variant('warning', color(warn, 500));
38-
@include gradient-variant('info', color(info, 500));
39-
@include gradient-variant('success', color(success, 500));
36+
@include gradient-variant('danger', var-get($theme, 'fill-color-danger'));
37+
@include gradient-variant('warning', var-get($theme, 'fill-color-warning'));
38+
@include gradient-variant('info', var-get($theme, 'fill-color-info'));
39+
@include gradient-variant('success', var-get($theme, 'fill-color-success'));
4040

4141
[part~='gradient_start'],
4242
[part~='gradient_end'] {
43-
stop-color: var(--gradient-stop-color, var-get($theme, 'progress-circle-color'));
43+
stop-color: var(--gradient-stop-color, var-get($theme, 'fill-color-default'));
4444
}
4545

src/components/progress/themes/linear/linear.progress.base.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
@use '../vars' as *;
66

77
:host {
8-
--track-size: #{rem(4px)};
98
--linear-animation-duration: 2000ms;
109
--linear-strips-orientation: -45deg;
1110
}
@@ -43,7 +42,6 @@
4342
[part~='track'] {
4443
position: relative;
4544
width: inherit;
46-
height: var(--track-size);
4745
overflow: hidden;
4846
z-index: 0;
4947
}

src/components/progress/themes/linear/shared/linear.progress.bootstrap.scss

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

src/components/progress/themes/linear/shared/linear.progress.common.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55

66
$theme: $material;
77

8+
:host {
9+
--track-size: #{var-get($theme, 'track-height')};
10+
}
11+
12+
:host([striped]) {
13+
--stripe-size: #{var-get($theme, 'strip-size')};
14+
}
15+
816
[part~='track'] {
17+
height: var(--track-size);
918
border-radius: var-get($theme, 'track-border-radius');
1019
background: var-get($theme, 'track-color');
1120
}
@@ -14,10 +23,6 @@ $theme: $material;
1423
color: var-get($theme, 'text-color');
1524
}
1625

17-
:host([striped]) {
18-
--stripe-size: #{rem(16px)};
19-
}
20-
2126
@mixin part-styles($part, $color-key) {
2227
:host([variant='#{$part}']) {
2328
--fill-bg: #{var-get($theme, $color-key)};

src/components/progress/themes/linear/shared/linear.progress.fluent.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
$theme: $fluent;
77
$track-color: color(gray, 200);
88

9-
:host {
10-
--track-size: #{rem(2px)};
11-
}
12-
139
:host(:dir(rtl)[indeterminate]),
1410
:host([dir='rtl']) {
1511
[part~='track'] {

src/components/progress/themes/linear/themes.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { styles as indigoLight } from './light/linear.progress.indigo.css.js';
1414
import { styles as materialLight } from './light/linear.progress.material.css.js';
1515
import { styles as sharedLight } from './light/linear.progress.shared.css.js';
1616
// Shared Styles
17-
import { styles as bootstrap } from './shared/linear.progress.bootstrap.css.js';
1817
import { styles as fluent } from './shared/linear.progress.fluent.css.js';
1918
import { styles as indigo } from './shared/linear.progress.indigo.css.js';
2019

@@ -23,7 +22,7 @@ const light = {
2322
${sharedLight}
2423
`,
2524
bootstrap: css`
26-
${bootstrap} ${bootstrapLight}
25+
${bootstrapLight}
2726
`,
2827
material: css`
2928
${materialLight}
@@ -41,7 +40,7 @@ const dark = {
4140
${sharedDark}
4241
`,
4342
bootstrap: css`
44-
${bootstrap} ${bootstrapDark}
43+
${bootstrapDark}
4544
`,
4645
material: css`
4746
${materialDark}

0 commit comments

Comments
 (0)