style: fix combobox zIndex (#228)

This commit is contained in:
Camila Sosa Morales 2023-04-17 15:07:28 -03:00 committed by GitHub
parent 5ae09105c0
commit 3da5666f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -41,7 +41,6 @@ export const ColorPicker: React.FC<ColorPickerProps> = ({
<div className="relative"> <div className="relative">
<Flex css={{ gap: '$3h', alignItems: 'center' }}> <Flex css={{ gap: '$3h', alignItems: 'center' }}>
<span>Primary Color</span> <span>Primary Color</span>
{/* TODO crate color picker component */}
<Button <Button
leftIcon={ leftIcon={
<Icon name="square" css={{ color: `${logoColor || '$black'}` }} /> <Icon name="square" css={{ color: `${logoColor || '$black'}` }} />
@ -54,7 +53,7 @@ export const ColorPicker: React.FC<ColorPickerProps> = ({
height: '$5', height: '$5',
borderRadius: '$md', borderRadius: '$md',
color: '$slate12', color: '$slate12',
zIndex: '$dropdown', zIndex: '$docked',
minWidth: '$28', minWidth: '$28',
}} }}
onClick={handleColorPickerClick} onClick={handleColorPickerClick}

View File

@ -54,7 +54,7 @@ export const ComboboxStyles = {
padding: '$3', padding: '$3',
gap: '$2', gap: '$2',
borderRadius: '$lg', borderRadius: '$lg',
zIndex: 10, zIndex: '$dropdown',
maxHeight: '30vh', maxHeight: '30vh',
overflow: 'auto', overflow: 'auto',
}), }),

View File

@ -75,7 +75,7 @@ export const UserOrgsCombobox: React.FC = () => {
<Combobox <Combobox
items={userAndOrganizations} items={userAndOrganizations}
unattached unattached
css={{ flex: 1 }} css={{ flex: 1, minWidth: '$44' }}
selected={[selectedUserOrg, handleUserOrgChange]} selected={[selectedUserOrg, handleUserOrgChange]}
queryKey="label" queryKey="label"
> >