Skip to content

Commit a06b408

Browse files
committed
fix(FR-1625): update default text color in BAIStatistic component for dark mode (#4576)
Follows #4478 Resolves #4479 ([FR-1625](https://lablup.atlassian.net/browse/FR-1625)) # Fix text color in BAIStatistic component This PR updates the default text color in the BAIStatistic component to use the theme token's `colorText` value instead of 'inherit' when no specific color is provided. This ensures consistent text coloring that properly respects the current theme. **Checklist:** - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after [FR-1625]: https://lablup.atlassian.net/browse/FR-1625?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 6a7a35a commit a06b408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend.ai-ui/src/components/BAIStatistic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const BAIStatistic: React.FC<BAIStatisticProps> = ({
9494
style={{
9595
fontSize: 32,
9696
lineHeight: '1em',
97-
color: style?.color ?? 'inherit',
97+
color: style?.color ?? token.colorText,
9898
}}
9999
>
100100
{displayCurrent}

0 commit comments

Comments
 (0)