Skip to content

Commit 09bfdc0

Browse files
CR
1 parent 2d5aa94 commit 09bfdc0

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

core/src/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,7 +2610,7 @@ export namespace Components {
26102610
*/
26112611
"reversed": boolean;
26122612
/**
2613-
* Set to `"round"` for a progress-bar with rounded corners, or `"rectangular"` for a progress-bar without rounded corners. Defaults to `"round"` for the `ionic` theme, undefined for all other themes.
2613+
* Set to `"round"` for a progress bar with rounded corners, or `"rectangular"` for a progress bar without rounded corners. Defaults to `"round"` for the `ionic` theme, undefined for all other themes.
26142614
*/
26152615
"shape"?: 'round' | 'rectangular';
26162616
/**
@@ -7964,7 +7964,7 @@ declare namespace LocalJSX {
79647964
*/
79657965
"reversed"?: boolean;
79667966
/**
7967-
* Set to `"round"` for a progress-bar with rounded corners, or `"rectangular"` for a progress-bar without rounded corners. Defaults to `"round"` for the `ionic` theme, undefined for all other themes.
7967+
* Set to `"round"` for a progress bar with rounded corners, or `"rectangular"` for a progress bar without rounded corners. Defaults to `"round"` for the `ionic` theme, undefined for all other themes.
79687968
*/
79697969
"shape"?: 'round' | 'rectangular';
79707970
/**

core/src/components/progress-bar/progress-bar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class ProgressBar implements ComponentInterface {
5858
@Prop({ reflect: true }) color?: Color;
5959

6060
/**
61-
* Set to `"round"` for a progress-bar with rounded corners, or `"rectangular"`
62-
* for a progress-bar without rounded corners.
61+
* Set to `"round"` for a progress bar with rounded corners, or `"rectangular"`
62+
* for a progress bar without rounded corners.
6363
*
6464
* Defaults to `"round"` for the `ionic` theme, undefined for all other themes.
6565
*/

core/src/components/progress-bar/test/shape/index.html

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@
1212
<script src="../../../../../scripts/testing/scripts.js"></script>
1313
<script nomodule src="../../../../../dist/ionic/ionic.js"></script>
1414
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
15-
16-
<style>
17-
ion-content::part(scroll) {
18-
display: flex;
19-
flex-direction: column;
20-
align-items: center;
21-
}
22-
23-
ion-progress-bar {
24-
margin: 10px 0;
25-
width: 70%;
26-
}
27-
</style>
2815
</head>
2916

3017
<body>
@@ -36,14 +23,28 @@
3623
</ion-header>
3724

3825
<ion-content class="ion-padding">
39-
<ion-label> Default </ion-label>
40-
<ion-progress-bar value="0.50"></ion-progress-bar>
26+
<ion-list lines="none">
27+
<ion-list-header>
28+
<ion-label> Default </ion-label>
29+
</ion-list-header>
30+
<ion-item>
31+
<ion-progress-bar value="0.50"></ion-progress-bar>
32+
</ion-item>
4133

42-
<ion-label> Round </ion-label>
43-
<ion-progress-bar value="0.50" shape="round"></ion-progress-bar>
34+
<ion-list-header>
35+
<ion-label> Round </ion-label>
36+
</ion-list-header>
37+
<ion-item>
38+
<ion-progress-bar value="0.50" shape="round"></ion-progress-bar>
39+
</ion-item>
4440

45-
<ion-label> Rectangular </ion-label>
46-
<ion-progress-bar value="0.50" shape="rectangular"></ion-progress-bar>
41+
<ion-list-header>
42+
<ion-label> Rectangular </ion-label>
43+
</ion-list-header>
44+
<ion-item>
45+
<ion-progress-bar value="0.50" shape="rectangular"></ion-progress-bar>
46+
</ion-item>
47+
</ion-list>
4748
</ion-content>
4849
</ion-app>
4950
</body>

0 commit comments

Comments
 (0)