From f28829b24e0d755bf1e1d3091a50a3d5e251f323 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 7 Jun 2023 23:31:10 +0200 Subject: [PATCH] Updated multiselect styles in AdminX refs. https://github.com/TryGhost/Team/issues/3354 --- ghost/admin-x-settings/src/admin-x-ds/global/MultiSelect.tsx | 2 +- .../src/components/settings/email/DefaultRecipients.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin-x-settings/src/admin-x-ds/global/MultiSelect.tsx b/ghost/admin-x-settings/src/admin-x-ds/global/MultiSelect.tsx index dc698ba4ca..d202fd55fa 100644 --- a/ghost/admin-x-settings/src/admin-x-ds/global/MultiSelect.tsx +++ b/ghost/admin-x-settings/src/admin-x-ds/global/MultiSelect.tsx @@ -48,7 +48,7 @@ const MultiSelect: React.FC = ({ } const customClasses = { - control: `w-full cursor-pointer appearance-none min-h-[40px] border-b ${!clearBg && 'bg-grey-75 px-[10px]'} py-2 outline-none ${error ? 'border-red' : 'border-grey-500 hover:border-grey-700'} ${title && 'mt-2'}`, + control: `w-full cursor-pointer appearance-none min-h-[40px] border-b ${!clearBg && 'bg-grey-75 px-[10px]'} py-2 outline-none ${error ? 'border-red' : 'border-grey-500 hover:border-grey-700'} ${(title && !clearBg) && 'mt-2'}`, valueContainer: 'gap-1', placeHolder: 'text-grey-600', menu: 'shadow py-2 rounded-b z-50 bg-white', diff --git a/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx b/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx index 68c9cdb0b0..b60bbdbaa7 100644 --- a/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx +++ b/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx @@ -123,6 +123,7 @@ const DefaultRecipients: React.FC = () => { {value: 'option3', label: 'Fake tier 3'} ]} title='Select tiers' + clearBg onChange={(selected: MultiValue) => { selected?.map(o => ( alert(`${o.label} (${o.value})`)