Skip to content

Commit

Permalink
[GAUD-7369] meter-circle > vdiff > round-to-zero doesn't round to zero (
Browse files Browse the repository at this point in the history
#5266)

* add percent prop, update demo to show as well
* Updating vdiff goldens (#5267)
  • Loading branch information
KearseTrevor authored Dec 20, 2024
1 parent 0cca403 commit 31fe8e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/meter/demo/meter.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ <h2>Meter Circle</h2>
<d2l-meter-circle value="0" max="10"></d2l-meter-circle>
<d2l-meter-circle value="5" max="13"></d2l-meter-circle>
<d2l-meter-circle value="5" max="13" percent></d2l-meter-circle>
<d2l-meter-circle value="0.004" max="100" percent text="Rounds to Zero" text-hidden></d2l-meter-circle>
<d2l-meter-circle value="10" max="10" text="Completed"></d2l-meter-circle>
<d2l-meter-circle value="19" max="26" style="width: 25%;"></d2l-meter-circle>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion components/meter/test/meter-circle.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('meter-circle', () => {
[
{ name: 'no-progress', template: html`<d2l-meter-circle value="0" max="10"></d2l-meter-circle>` },
{ name: 'complete', template: html`<d2l-meter-circle value="5" max="5"></d2l-meter-circle>` },
{ name: 'round-to-zero', template: html`<d2l-meter-circle value="0.004" max="100"></d2l-meter-circle>` },
{ name: 'round-to-zero', template: html`<d2l-meter-circle value="0.004" max="100" percent></d2l-meter-circle>` },
{ name: 'max-zero-with-value', template: html`<d2l-meter-circle value="10" max="0"></d2l-meter-circle>` },
{ name: '100-percent', template: html`<d2l-meter-circle value="10" max="10" percent></d2l-meter-circle>` },
{ name: 'text', template: html`<d2l-meter-circle value="10" max="10" text="Done!"></d2l-meter-circle>` },
Expand Down

0 comments on commit 31fe8e6

Please sign in to comment.