From 11d65221029e8744c789f194abfd575a14a28205 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Mon, 2 Dec 2024 14:05:38 +0000 Subject: [PATCH] restyle header --- .../@planx/components/ExternalPortal/Editor.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.tsx b/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.tsx index ad04522555..03e31ac63c 100644 --- a/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/ExternalPortal/Editor.tsx @@ -3,6 +3,7 @@ import ListItem from "@mui/material/ListItem"; import ListSubheader from "@mui/material/ListSubheader"; import MenuItem from "@mui/material/MenuItem"; import { styled } from "@mui/material/styles"; +import Typography from "@mui/material/Typography"; import { ComponentType as TYPES, NodeTag, @@ -44,12 +45,8 @@ type FlowAutocompleteInputProps = AutocompleteProps< >; const AutocompleteSubHeader = styled(ListSubheader)(({ theme }) => ({ - fontWeight: FONT_WEIGHT_SEMI_BOLD, - fontSize: theme.typography.subtitle1.fontSize, - backgroundColor: theme.palette.background.dark, - color: theme.palette.getContrastText(theme.palette.background.dark), - margin: 0, - height: "100%", + borderTop: 1, + borderColor: theme.palette.border.main, })); const renderOption: FlowAutocompleteListProps["renderOption"] = ( @@ -59,7 +56,7 @@ const renderOption: FlowAutocompleteListProps["renderOption"] = ( ({ paddingY: `${theme.spacing(1.25)} !important` })} + sx={(theme) => ({ paddingY: `${theme.spacing(1.25)}` })} > {option.name} @@ -79,7 +76,9 @@ const renderInput: FlowAutocompleteInputProps["renderInput"] = (params) => ( const renderGroup: FlowAutocompleteListProps["renderGroup"] = (params) => ( <> - {params.group} + + {params.group} + {params.children}