Commit a9200b2c authored by Mike Grabowski's avatar Mike Grabowski Committed by GitHub

chore: fix invalid css color prop on text components (#5388)

* chore: fix

* chore: fix snapshot tests
parent 209fd337
......@@ -171,7 +171,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
<div
class="c10 css-1j6a53a"
class="c10 css-yfjwjl"
>
DAI
</div>
......@@ -246,7 +246,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
<div
class="c10 css-1j6a53a"
class="c10 css-yfjwjl"
>
USDC
</div>
......@@ -321,7 +321,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
<div
class="c10 css-1j6a53a"
class="c10 css-yfjwjl"
>
WBTC
</div>
......
......@@ -5,7 +5,9 @@
import { Text, TextProps as TextPropsOriginal } from 'rebass'
import styled from 'styled-components/macro'
const TextWrapper = styled(Text)<{ color: keyof string }>`
const TextWrapper = styled(Text).withConfig({
shouldForwardProp: (prop) => prop !== 'color',
})<{ color: keyof string }>`
color: ${({ color, theme }) => (theme as any)[color]};
`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment