Skip to content

Commit

Permalink
fix: 统一spinner和text的颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantiancheng committed Feb 21, 2025
1 parent 1dbe87b commit 53f2385
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/amis-ui/src/components/PullRefresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@ const PullRefresh = forwardRef<{}, PullRefreshProps>((props, ref) => {
<div
className={className}
ref={loadingRef}
style={color ? {color: color} : undefined}
style={
color
? ({
'--Spinner-color': color,
'color': color
} as React.CSSProperties)
: undefined
}
>
{showIcon && props.loading && (
<Spinner
Expand Down

0 comments on commit 53f2385

Please sign in to comment.