Skip to content

Commit

Permalink
Merge pull request #605 from Sysvale/bugfix/fix-gaugechart-to-others-…
Browse files Browse the repository at this point in the history
…browsers

Bugfix/fix gaugechart to others browsers
  • Loading branch information
LEMSantos authored Apr 10, 2024
2 parents e454706 + c6c030a commit 40053bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sysvale/cuida",
"version": "3.0.0-beta.124",
"version": "3.0.0-beta.125",
"description": "A design system built by Sysvale, using storybook and Vue components",
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion src/components/GaugeChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export default {
};
},

chartProgressValue() {
return 198 * (1 - this.value / 100);
},

formatedValue() {
return `${this.value.toLocaleString('pt-br', {minimumFractionDigits: 1})}%`;
},
Expand All @@ -123,7 +127,7 @@ export default {
<style lang="scss" scoped>
@import './../assets/sass/tokens.scss';

$stroke-progress: calc(198 * (1 - var(--value) / 100));
$stroke-progress: v-bind(chartProgressValue);

.responsive-container {
height: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/tests/__snapshots__/IconButton.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ VueWrapper {
"clickHandler": [Function],
"computedModifiers": " cds-icon-button--lg",
"disabled": false,
"feedbackIcon": "check-outline",
"feedbackOnClick": false,
"hasOwnProperty": [Function],
"icon": "trash-outline",
"innerTooltipText": null,
"inputControlPanel": 0,
"internalIcon": "trash-outline",
"predefinedSize": "cds-icon-button--lg",
"predefinedSizes": [Array],
"size": "lg",
Expand Down

0 comments on commit 40053bc

Please sign in to comment.