Skip to content

Commit ddbdb6c

Browse files
authored
chore(aggregations): use combobox xsmall instead of custon height COMPASS-6347 (#7056)
chore(aggregations): use combobox xsmall instead of custon height
1 parent 4361fd6 commit ddbdb6c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,13 @@ import { isAtlasOnly } from '../../utils/stage';
1818
import type { ServerEnvironment } from '../../modules/env';
1919

2020
const inputWidth = spacing[1400] * 3;
21-
const inputHeight = spacing[600] - 2; // match other xs controls
2221
// width of options popover
2322
const comboxboxOptionsWidth = spacing[1200] * 10;
2423
// left position of options popover wrt input. this aligns it with the start of input
2524
const comboboxOptionsLeft = (comboxboxOptionsWidth - inputWidth) / 2;
2625

2726
const comboboxStyles = css({
2827
width: inputWidth,
29-
'& [role="combobox"]': {
30-
padding: 0,
31-
paddingLeft: spacing[100],
32-
height: inputHeight,
33-
'& > div': {
34-
minHeight: inputHeight,
35-
},
36-
},
3728
'> :popover-open': {
3829
width: comboxboxOptionsWidth,
3930
whiteSpace: 'normal',
@@ -74,7 +65,7 @@ export const StageOperatorSelect = ({
7465
disabled={isDisabled}
7566
aria-label="Select a stage operator"
7667
onChange={onStageOperatorSelected}
77-
size="default"
68+
size="xsmall"
7869
clearable={false}
7970
data-testid="stage-operator-combobox"
8071
className={comboboxStyles}

0 commit comments

Comments
 (0)