diff --git a/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx b/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx index 35b60c81daa..dd1d0fb4c85 100644 --- a/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx +++ b/packages/manager/src/features/TopMenu/AddNewMenu/AddNewMenu.tsx @@ -1,7 +1,14 @@ -import { Box, Divider, omittedProps } from '@linode/ui'; +import { Box, Divider, Paper, omittedProps } from '@linode/ui'; import KeyboardArrowDown from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowUp from '@mui/icons-material/KeyboardArrowUp'; -import { Menu, MenuItem, Stack, Typography, useTheme } from '@mui/material'; +import { + MenuItem, + MenuList, + Popover, + Stack, + Typography, + useTheme, +} from '@mui/material'; import { styled } from '@mui/material/styles'; import * as React from 'react'; import { Link } from 'react-router-dom'; @@ -203,51 +210,50 @@ export const AddNewMenu = () => { > Create - - - {productFamilyLinkGroup.slice(0, 2).map((productFamily) => ( - <> - - {ProductFamilyGroup(productFamily)} - - - - ))} - - {productFamilyLinkGroup - .slice(2) - .map((productFamily) => ProductFamilyGroup(productFamily))} - - - + ({ + padding: `${theme.spacing(1)} 0`, + [theme.breakpoints.down('sm')]: { + padding: 0, + }, + })} + > + ({ + [theme.breakpoints.up('md')]: { + display: 'flex', + }, + })} + > + {productFamilyLinkGroup.slice(0, 2).map((productFamily) => ( + <> + + {ProductFamilyGroup(productFamily)} + + + + ))} + + {productFamilyLinkGroup + .slice(2) + .map((productFamily) => ProductFamilyGroup(productFamily))} + + + + ); }; @@ -264,6 +270,7 @@ export const StyledHeading = styled('h3', { alignItems: 'center', background: 'rgb(247, 247, 250)', display: 'flex', + fontFamily: 'LatoWebBold', fontSize: '0.75rem', letterSpacing: '0.25px', margin: 0, @@ -271,7 +278,7 @@ export const StyledHeading = styled('h3', { textTransform: 'uppercase', [theme.breakpoints.up('lg')]: { background: 'inherit', - padding: `${props.paddingTop ? '16px' : '0px'} 16px 8px 16px`, + padding: `${props.paddingTop ? '16px' : '8px'} 16px 6px 16px`, }, })); @@ -285,11 +292,3 @@ export const StyledMenuItem = styled(MenuItem, { padding: '8px 16px', }, })); - -export const StyledBox = styled(Box, { - label: 'StyledBox', -})(({ theme }) => ({ - [theme.breakpoints.up('md')]: { - display: 'flex', - }, -}));