Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,14 @@ describe('Combobox', () => {
});

it('renders `isBare` styling as expected', () => {
const { getByTestId } = render(<TestCombobox isBare />);
const { getByTestId, rerender } = render(<TestCombobox isBare />);
const combobox = getByTestId('combobox');

expect(combobox.firstChild).toHaveStyleRule('border', 'none');
expect(combobox.firstChild).toHaveStyleRule('overflow-y', 'visible');

rerender(<TestCombobox isBare isMultiselectable />);
expect(combobox.firstChild).toHaveStyleRule('overflow-y', 'auto');
});

it('renders `isCompact` styling as expected', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const StyledTrigger = styled.div.attrs({
'data-garden-id': COMPONENT_ID,
'data-garden-version': PACKAGE_VERSION
})<IStyledTriggerProps>`
overflow-y: auto;
overflow-y: ${props => (props.isBare && !props.isMultiselectable ? 'visible' : 'auto')};
/* prettier-ignore */
transition:
border-color 0.25s ease-in-out,
Expand Down