Skip to content

Commit f3c6632

Browse files
authored
fix (progress blocks): use only the derivedProgressValue without the suffix and prefix for the CSS var (#3549)
1 parent 9363505 commit f3c6632

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/block/progress-bar/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const Edit = props => {
120120
</div>
121121
{ /* Add our progress style here because we're adjusting the value using a hook */ }
122122
<style>
123-
{ `.editor-styles-wrapper .stk-${ props.attributes.uniqueId } .stk-progress-bar { --progress-value:${ derivedValue }% !important; }` }
123+
{ `.editor-styles-wrapper .stk-${ props.attributes.uniqueId } .stk-progress-bar { --progress-value:${ derivedProgressValue }% !important; }` }
124124
</style>
125125
</BlockDiv>
126126
{ props.isHovered && <MarginBottom /> }

src/block/progress-circle/edit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const Edit = props => {
132132
</div>
133133
{ /* Add our progress style here because we're adjusting the value using a hook */ }
134134
<style>
135-
{ `.editor-styles-wrapper .stk-${ props.attributes.uniqueId } .stk-progress-circle { --progress-value:${ derivedValue } }` }
135+
{ `.editor-styles-wrapper .stk-${ props.attributes.uniqueId } .stk-progress-circle { --progress-value:${ derivedProgressValue } }` }
136136
</style>
137137
</BlockDiv>
138138
{ props.isHovered && <MarginBottom /> }

0 commit comments

Comments
 (0)