Isolate Cancel Button Menu Styling

This commit is contained in:
blessedcoolant 2023-02-19 13:23:04 +13:00
parent d42cc0fd1c
commit 8bf93d3a32
2 changed files with 14 additions and 5 deletions

View File

@ -72,13 +72,13 @@ export default function IAISimpleMenu(props: IAIMenuProps) {
tooltip={iconTooltip}
icon={isOpen ? <MdArrowDropUp /> : <MdArrowDropDown />}
padding={menuType === 'regular' ? '0 0.5rem' : 0}
backgroundColor="var(--destructive-color)"
color="var(--text-color)"
minWidth="1.5rem"
minHeight="1.5rem"
backgroundColor="var(--btn-base-color)"
_hover={{
backgroundColor: 'var(--destructive-color-hover)',
backgroundColor: 'var(--btn-base-color-hover)',
}}
minWidth="1rem"
minHeight="1rem"
fontSize="1.5rem"
{...menuButtonProps}
>
{menuType === 'regular' && buttonText}

View File

@ -139,6 +139,15 @@ export default function CancelButton(
<IAISimpleMenu
menuItems={cancelMenuItems}
iconTooltip={t('parameters.cancel.setType')}
menuButtonProps={{
backgroundColor: 'var(--destructive-color)',
color: 'var(--text-color)',
minWidth: '1.5rem',
minHeight: '1.5rem',
_hover: {
backgroundColor: 'var(--destructive-color-hover)',
},
}}
/>
</ButtonGroup>
);