- Update css font/color based on figma
This commit is contained in:
1 parent
fe5f2af649
commit
09ba21245c
1 file changed
+5
-3
@@ -10,7 +10,8 @@ const Gauge = ({ progressValue, displayText, theme }) => {
|
|||||||
const getStyles = (theme) => ({
|
const getStyles = (theme) => ({
|
||||||
text: {
|
text: {
|
||||||
...BASE_TEXT_STYLE,
|
...BASE_TEXT_STYLE,
|
||||||
style: { fontSize: "12px", fill: theme.palette.text.tertiary },
|
style: { fontSize: "11px", fontWeight: 400, fill: theme.palette.text.tertiary
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const data = [{ value: 100 }];
|
const data = [{ value: 100 }];
|
||||||
@@ -36,8 +37,8 @@ const Gauge = ({ progressValue, displayText, theme }) => {
|
|||||||
>
|
>
|
||||||
<RadialBar
|
<RadialBar
|
||||||
{...commonRadialBarProps}
|
{...commonRadialBarProps}
|
||||||
fill="#8884d8"
|
fill="#1570EF"
|
||||||
background={{ fill: "#bed2ea" }}
|
background={{ fill: "#CDE2FF" }}
|
||||||
data={[{ value: progressValue }]}
|
data={[{ value: progressValue }]}
|
||||||
/>
|
/>
|
||||||
<RadialBar
|
<RadialBar
|
||||||
@@ -61,6 +62,7 @@ const Gauge = ({ progressValue, displayText, theme }) => {
|
|||||||
x="50%"
|
x="50%"
|
||||||
y="55%"
|
y="55%"
|
||||||
{...getStyles(theme).text}
|
{...getStyles(theme).text}
|
||||||
|
style={{fontSize: 9 }}
|
||||||
>
|
>
|
||||||
{`${displayText}`}
|
{`${displayText}`}
|
||||||
</text>
|
</text>
|
||||||
|
|||||||
Reference in new issue
Block a user