mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Updated multiselect styles in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
This commit is contained in:
parent
d1c32e47bb
commit
f28829b24e
2 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ const MultiSelect: React.FC<MultiSelectProps> = ({
|
|||
}
|
||||
|
||||
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',
|
||||
|
|
|
@ -123,6 +123,7 @@ const DefaultRecipients: React.FC = () => {
|
|||
{value: 'option3', label: 'Fake tier 3'}
|
||||
]}
|
||||
title='Select tiers'
|
||||
clearBg
|
||||
onChange={(selected: MultiValue<MultiSelectOption>) => {
|
||||
selected?.map(o => (
|
||||
alert(`${o.label} (${o.value})`)
|
||||
|
|
Loading…
Reference in a new issue