Skip to content

Commit 3e392f8

Browse files
committed
fix(circular-progress): fix diameter/size prop setting
1 parent 872bc64 commit 3e392f8

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.custom-size {
2-
width: 100px;
3-
height: 100px;
2+
--diameter: 50px;
3+
--stroke-thickness: 3px;
44
}
55

66
.sample-content {
77
width: 300px;
88
display: flex;
99
align-items: center;
10-
margin-top: 30px;
10+
margin: 30px;
1111
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
igx-circular-bar {
2+
margin: 20px;
3+
--diameter: 50px;
4+
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.custom-size {
2-
margin-top: 20px;
3-
width: 50px;
4-
height: 50px;
2+
margin: 20px;
3+
--diameter: 50px;
54
}
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
@use "igniteui-angular/theming" as *;
22

33
$custom-theme: progress-circular-theme(
4-
$base-circle-color: lightgray,
5-
$fill-color-default: rgb(32, 192, 17),
4+
$base-circle-color: lightgray,
5+
$fill-color-default: rgb(32, 192, 17),
6+
$diameter: 50px,
67
);
78

89
@include css-vars($custom-theme);
9-
10+
11+
igx-circular-bar {
12+
margin: 20px;
13+
}

0 commit comments

Comments
 (0)