Skip to content

Commit

Permalink
chore(combo-box): clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Lena Rashkovan committed Oct 14, 2024
1 parent 7cea7f0 commit 110f8af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/experimental/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { InnerWrapper } from '../Field/InnerWrapper';
import { Input } from '../Field/Field';
import { FieldProps } from '../Field/Props';
import { Button } from '../Field/Button';
import XCrossCircleIcon from '../../../icons/actions/XCrossCircleIcon';
import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden';
import { Footer } from '../Field/Footer';
import { Wrapper } from '../Field/Wrapper';
import XCrossCircleIcon from '../../../icons/actions/XCrossCircleIcon';
import { VisuallyHidden } from '../../VisuallyHidden/VisuallyHidden';

const defaultAriaStrings = {
clearFieldButton: 'Clear field',
Expand All @@ -30,8 +30,7 @@ const StyledPopover = styled(Popover)`
width: var(--trigger-width);
`;

interface ComboBoxFieldProps extends Pick<FieldProps, 'description' | 'errorMessage' | 'leadingIcon'> {
label: string;
interface ComboBoxFieldProps extends Pick<FieldProps, 'label' | 'description' | 'errorMessage' | 'leadingIcon'> {
placeholder?: string;
/**
* If your project supports multiple languages,
Expand Down Expand Up @@ -118,7 +117,6 @@ function ComboBox<T extends Record<string, unknown>>({
<Footer>{isInvalid ? <FieldError>{errorMessage}</FieldError> : description}</Footer>
</Wrapper>
<StyledPopover
containerPadding={0}
triggerRef={triggerRef}
style={{ '--trigger-width': menuWidth } as React.CSSProperties}
>
Expand Down

0 comments on commit 110f8af

Please sign in to comment.