Skip to content

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

decrease font size in click behavior sidebar (#71519)

Nick Fitzpatrick281aa0dc12f5
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarComponents.tsx b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarComponents.tsx
index 4c330cf3bf0..09d88e9c8a3 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarComponents.tsx
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/ClickBehaviorSidebarComponents.tsx
@@ -7,7 +7,7 @@ import S from "./ClickBehaviorSidebar.module.css";
export const Heading = (props: TitleProps) => {
const { className, ...rest } = props;
- return <Title order={4} className={cx(S.Heading, className)} {...rest} />;
+ return <Title order={5} className={cx(S.Heading, className)} {...rest} />;
};
export const SidebarContent = (
diff --git a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItemComponents.tsx b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItemComponents.tsx
index e31f4c515fd..8f792f84592 100644
--- a/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItemComponents.tsx
+++ b/frontend/src/metabase/dashboard/components/ClickBehaviorSidebar/SidebarItem/SidebarItemComponents.tsx
@@ -1,6 +1,6 @@
import cx from "classnames";
-import { Flex, type FlexProps, Title, type TitleProps } from "metabase/ui";
+import { Flex, type FlexProps, Text, type TextProps } from "metabase/ui";
import S from "./SidebarItem.module.css";
@@ -49,6 +49,12 @@ export const Content = (props: FlexProps) => {
return <Flex align="center" w="100%" {...props} />;
};
-export const Name = (props: TitleProps) => (
- <Title order={4} ta="left" textWrap="wrap" {...props} />
+export const Name = (props: React.PropsWithChildren<TextProps>) => (
+ <Text
+ fw="bold"
+ ta="left"
+ c="inherit"
+ style={{ textWrap: "wrap" }}
+ {...props}
+ />
);