Skip to content

Commit fba013c

Browse files
committed
fix: correct custom color computation in useProgressClasses
1 parent 4eacdd2 commit fba013c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FwbProgress/composables/useProgressClasses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function useProgressClasses (props: UseProgressClassesProps): {
4545
customColor: Ref<CustomColor | null>
4646
} {
4747
const customColor = computed(() => {
48-
return props.color.value as CustomColor
48+
return barColorClasses[props.color.value] ? null : (props.color.value as CustomColor)
4949
})
5050
const bindClasses = computed(() => {
5151
return classNames(

0 commit comments

Comments
 (0)