Skip to content

Commit 5889312

Browse files
fix: ensure that the default spinner stroke color gets inherited from the parent node
1 parent 9479d25 commit 5889312

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatScreenContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export function FiatScreenContent(props: {
230230
</Container>
231231

232232
<Button
233-
variant={disableSubmit ? "outline" : "accent"}
233+
variant="accent"
234234
data-disabled={disableSubmit}
235235
disabled={disableSubmit}
236236
fullWidth
@@ -250,7 +250,7 @@ export function FiatScreenContent(props: {
250250
{fiatQuoteQuery.isLoading ? (
251251
<>
252252
Getting price quote
253-
<Spinner size="sm" color="accentButtonText" />
253+
<Spinner size="sm" />
254254
</>
255255
) : (
256256
"Continue"

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/SwapScreenContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export function SwapScreenContent(props: {
334334
/>
335335
) : (
336336
<Button
337-
variant={disableContinue ? "outline" : "accent"}
337+
variant="accent"
338338
fullWidth
339339
data-disabled={disableContinue}
340340
disabled={disableContinue}
@@ -360,7 +360,7 @@ export function SwapScreenContent(props: {
360360
{quoteQuery.isLoading ? (
361361
<>
362362
Getting price quote
363-
<Spinner size="sm" color="accentButtonText" />
363+
<Spinner size="sm" />
364364
</>
365365
) : (
366366
"Continue"

packages/thirdweb/src/react/web/ui/components/Spinner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { StyledCircle, StyledSvg } from "../design-system/elements.js";
99
* @internal
1010
*/
1111
export const Spinner: React.FC<{
12-
color: keyof Theme["colors"];
1312
size: keyof typeof iconSize;
13+
color?: keyof Theme["colors"];
1414
}> = (props) => {
1515
const theme = useCustomTheme();
1616
return (
@@ -26,7 +26,7 @@ export const Spinner: React.FC<{
2626
cy="25"
2727
r="20"
2828
fill="none"
29-
stroke={theme.colors[props.color]}
29+
stroke={props.color ? theme.colors[props.color] : "currentColor"}
3030
strokeWidth={Number(iconSize[props.size]) > 64 ? "2" : "4"}
3131
/>
3232
</Svg>

0 commit comments

Comments
 (0)