Skip to content

Commit

Permalink
feat(progress-bar): use core tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
yosevu authored and Westbrook committed Feb 2, 2023
1 parent 38efbf0 commit 540552e
Show file tree
Hide file tree
Showing 18 changed files with 645 additions and 538 deletions.
2 changes: 1 addition & 1 deletion packages/meter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@spectrum-web-components/shared": "^0.15.5"
},
"devDependencies": {
"@spectrum-css/progressbar": "^1.0.33"
"@spectrum-css/progressbar": "^3.0.1"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
3 changes: 3 additions & 0 deletions packages/meter/src/Meter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export class Meter extends SizedMixin(ObserveSlotText(SpectrumElement, '')) {
// called sideLabel
public sideLabel = false;

@property({ type: String, reflect: true })
public static: 'white' | undefined;

protected override render(): TemplateResult {
return html`
<sp-field-label size=${this.size} class="label">
Expand Down
14 changes: 14 additions & 0 deletions packages/meter/src/spectrum-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ const config = {
},
],
},
{
type: 'enum',
name: 'static',
values: [
{
name: 'black',
selector: '.spectrum-ProgressBar--staticBlack',
},
{
name: 'white',
selector: '.spectrum-ProgressBar--staticWhite',
},
],
},
],
},
],
Expand Down
Loading

0 comments on commit 540552e

Please sign in to comment.