Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

remove color prop from Based On Icons, center with flex (#76253)

Nick Fitzpatrick5c471b3e4dd2
diff --git a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/components/QuestionSources.tsx b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/components/QuestionSources.tsx
index b101b3ad8af..289a7f6638d 100644
--- a/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/components/QuestionSources.tsx
+++ b/frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar/components/QuestionSources.tsx
@@ -46,10 +46,8 @@ export const QuestionSources = () => {
{sourcesWithIcons.map(({ href, name, iconProps }, index) => (
<Fragment key={`${href}-${name}`}>
<Link to={href} variant="brand">
- <Flex gap="sm" lh="1.25rem" maw="20rem">
- {iconProps ? (
- <Icon mt={2} c="text-primary" {...iconProps} />
- ) : null}
+ <Flex gap="sm" lh="1.25rem" maw="20rem" align="center">
+ {iconProps ? <Icon {...iconProps} /> : null}
{name}
</Flex>
</Link>