diff --git a/app/components/chart-preview.tsx b/app/components/chart-preview.tsx index da107945c4..f021c368eb 100644 --- a/app/components/chart-preview.tsx +++ b/app/components/chart-preview.tsx @@ -35,6 +35,7 @@ import { Checkbox } from "@/components/form"; import { HintYellow } from "@/components/hint"; import { MetadataPanel } from "@/components/metadata-panel"; import { BANNER_MARGIN_TOP } from "@/components/presence"; +import VisuallyHidden from "@/components/visually-hidden"; import { ChartConfig, DataSource, @@ -411,7 +412,7 @@ export const ChartPreviewInner = (props: ChartPreviewInnerProps) => { ) : ( // We need to have a span here to keep the space between the // title and the chart (subgrid layout) - + )} {!disableMetadataPanel && ( @@ -443,7 +444,7 @@ export const ChartPreviewInner = (props: ChartPreviewInnerProps) => { ) : ( // We need to have a span here to keep the space between the // title and the chart (subgrid layout) - + )} {chartConfig.interactiveFiltersConfig?.dataFilters.active ? ( { ) : ( // We need to have a span here to keep the space between the // description and the chart (subgrid layout) - + )}
{ ) : ( // We need to have a span here to keep the space between the // title and the chart (subgrid layout) - + )} { ) : ( // We need to have a span here to keep the space between the // title and the chart (subgrid layout) - + )} {chartConfig.interactiveFiltersConfig?.dataFilters.active ? ( { ) : ( // We need to have a span here to keep the space between the // description and the chart (subgrid layout) - + )}
((theme) => ({ display: "grid", gridTemplateRows: "subgrid", gridRow: shouldShowDebugPanel() ? "span 7" : "span 6", + rowGap: 0, padding: theme.spacing(6), backgroundColor: theme.palette.background.paper, border: "1px solid", diff --git a/app/components/visually-hidden.tsx b/app/components/visually-hidden.tsx index 4081270c10..d2c208edb8 100644 --- a/app/components/visually-hidden.tsx +++ b/app/components/visually-hidden.tsx @@ -1,7 +1,7 @@ import { Box } from "@mui/material"; import { visuallyHidden } from "@mui/utils"; -const VisuallyHidden = ({ children }: { children: React.ReactNode }) => { +const VisuallyHidden = ({ children }: { children?: React.ReactNode }) => { // @ts-ignore - I do not know why CSSProperties do not go directly into sx. It works. return {children}; };