Skip to content

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

Use Flexbox container to avoid CLS when on Collection Items Page (#62813)

Nick Fitzpatricka5e72d83c541
diff --git a/frontend/src/metabase/common/components/CheckBox/CheckBox.tsx b/frontend/src/metabase/common/components/CheckBox/CheckBox.tsx
index 18e3f4e66c0..b3f658ae07c 100644
--- a/frontend/src/metabase/common/components/CheckBox/CheckBox.tsx
+++ b/frontend/src/metabase/common/components/CheckBox/CheckBox.tsx
@@ -8,7 +8,7 @@ import type {
} from "react";
import { forwardRef, isValidElement, useRef } from "react";
-import { Tooltip } from "metabase/ui";
+import { Flex, Tooltip } from "metabase/ui";
import {
CheckBoxContainer,
@@ -85,7 +85,7 @@ const BaseCheckBox = forwardRef<HTMLLabelElement, CheckBoxProps>(
hasTooltip={!!(labelEllipsis && hasLabelEllipsis)}
tooltipLabel={label}
>
- <div>
+ <Flex>
{/* the div is needed because CheckTooltip requires 1 child when hasTooltip is true */}
<CheckBoxInput
id={id ?? name}
@@ -126,7 +126,7 @@ const BaseCheckBox = forwardRef<HTMLLabelElement, CheckBoxProps>(
</CheckBoxLabel>
))}
</CheckBoxContainer>
- </div>
+ </Flex>
</CheckboxTooltip>
</CheckBoxRoot>
);