Move shadow style from TableCell and InlineCell to FieldInputs (#2078)

* Move shadow style from TableCell and InlineCell to FieldInputs

* Move overlay to inputs

* Complete work
This commit is contained in:
Charles Bochet
2023-10-17 20:59:56 +02:00
committed by GitHub
parent a40516df83
commit 01e9545a59
22 changed files with 164 additions and 194 deletions

View File

@ -29,7 +29,6 @@ export const StyledDropdownButtonContainer = styled.div<StyledDropdownButtonProp
color: ${({ color }) => color ?? 'none'};
cursor: pointer;
display: flex;
filter: ${(props) => (props.isUnfolded ? 'brightness(0.95)' : 'none')};
height: 32px;

View File

@ -20,17 +20,18 @@ const StyledIconContainer = styled.div`
svg {
align-items: center;
border-radius: ${({ theme }) => theme.border.radius.xs};
display: flex;
height: 16px;
height: 12px;
justify-content: center;
}
`;
const StyledDropdownMenuContainer = styled.ul`
left: 0;
left: 6px;
padding: 0;
position: absolute;
top: 24px;
top: 26px;
`;
export const CountryPickerDropdownSelect = ({
@ -57,7 +58,7 @@ export const CountryPickerDropdownSelect = ({
return (
<>
<StyledDropdownMenuContainer data-select-disable>
<StyledDropdownMenu width={'240px'}>
<StyledDropdownMenu width="240px" disableBlur>
<DropdownMenuSearchInput
value={searchFilter}
onChange={(event) => setSearchFilter(event.currentTarget.value)}

View File

@ -43,7 +43,7 @@ export const SingleEntitySelect = <
onCreate,
onEntitySelected,
selectedEntity,
width,
width = 200,
}: SingleEntitySelectProps<CustomEntityForSelect>) => {
const containerRef = useRef<HTMLDivElement>(null);