File tree Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ Use the `label` attribute to label the progress bar and tell assistive devices h
21
21
22
22
### Custom Height
23
23
24
- Use the ` height ` CSS property to set the progress bar's height.
24
+ Use the ` --track- height` custom property to set the progress bar's height.
25
25
26
26
``` html {.example}
27
- <wa-progress-bar value =" 50" style =" height : 6px ;" ></wa-progress-bar >
27
+ <wa-progress-bar value =" 50" style =" --track- height : 6px ;" ></wa-progress-bar >
28
28
```
29
29
30
30
### Showing Values
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ Components with the <wa-badge variant="warning">Experimental</wa-badge> badge sh
10
10
11
11
## Next
12
12
13
+ ### New Features {data-no-outline}
14
+ - Added ` --track-height ` custom property to ` <wa-progress-bar> ` [ pr:1154]
15
+ - Added ` --pulse-color ` custom property to ` <wa-badge> ` [ pr:1173]
16
+
13
17
### Bug Fixes and Improvements {data-no-outline}
14
18
15
19
- Fixed a bug in ` <wa-badge> ` where ` appearance="pulse" ` was not working as expected [ pr:1173]
Original file line number Diff line number Diff line change @@ -616,8 +616,8 @@ layout: false
616
616
}
617
617
}
618
618
619
- wa-progress-bar ::part( base ) {
620
- height : 0.5em ;
619
+ wa-progress-bar {
620
+ --track- height : 0.5em ;
621
621
}
622
622
</style >
623
623
</body >
Original file line number Diff line number Diff line change 1
1
: host {
2
+ - - track- height: 1rem;
2
3
- - track- color : var(--wa-color-neutral-fill-normal );
3
4
- - indicato r- color : var(- - wa- color - brand - fill- loud);
4
5
10
11
display : flex;
11
12
position : relative;
12
13
overflow : hidden;
13
- height : 1 rem ;
14
+ height : var ( --track-height ) ;
14
15
border-radius : var (--wa-border-radius-pill );
15
16
background-color : var (--track-color );
16
17
color : var (--wa-color-brand-on-loud );
18
+ font-size : var (--wa-font-size-s );
17
19
}
18
20
19
21
.indicator {
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ import styles from './progress-bar.css';
19
19
* @csspart indicator - The progress bar's indicator.
20
20
* @csspart label - The progress bar's label.
21
21
*
22
- * @cssproperty --track-color - The color of the track.
23
- * @cssproperty --indicator-color - The color of the indicator.
22
+ * @cssproperty [--track-height=1rem] - The color of the track.
23
+ * @cssproperty [--track-color=var(--wa-color-neutral-fill-normal)] - The color of the track.
24
+ * @cssproperty [--indicator-color=var(--wa-color-brand-fill-loud)] - The color of the indicator.
24
25
*/
25
26
@customElement ( 'wa-progress-bar' )
26
27
export default class WaProgressBar extends WebAwesomeElement {
Original file line number Diff line number Diff line change 466
466
}
467
467
}
468
468
469
- wa-progress-bar ::part (base ),
470
- progress {
471
- height : 1em ;
472
- }
473
-
474
469
wa-tab {
475
470
font-size : var (--wa-font-size-smaller );
476
471
}
You can’t perform that action at this time.
0 commit comments