Prometheus: Enable Combobox metric select by default (#101045)

* Prometheus: enable prometheusUsesCombobox toggle by default

* bold Combobox
This commit is contained in:
Josh Hunt
2025-03-30 18:24:53 +01:00
committed by GitHub
parent 88e51d549c
commit 7ea0fab606
12 changed files with 37 additions and 30 deletions

View File

@ -57,6 +57,8 @@ export interface ComboboxBaseProps<T extends string | number>
* */
width?: number | 'auto';
['data-testid']?: string;
/**
* Called when the input loses focus.
*/
@ -120,6 +122,7 @@ export const Combobox = <T extends string | number>(props: ComboboxProps<T>) =>
minWidth,
maxWidth,
'aria-labelledby': ariaLabelledBy,
'data-testid': dataTestId,
autoFocus,
onBlur,
disabled,
@ -359,6 +362,7 @@ export const Combobox = <T extends string | number>(props: ComboboxProps<T>) =>
onChange: noop, // Empty onCall to avoid TS error https://github.com/downshift-js/downshift/issues/718
'aria-labelledby': ariaLabelledBy, // Label should be handled with the Field component
placeholder,
'data-testid': dataTestId,
})}
/>
<Portal>

View File

@ -50,6 +50,7 @@ export const AutoSizeInput = React.forwardRef<HTMLInputElement, Props>((props, r
return (
<AutoSizeInputContext.Provider value={true}>
<Input
data-testid="autosize-input" // consumer should override default testid
{...restProps}
placeholder={placeholder}
ref={ref}
@ -76,7 +77,6 @@ export const AutoSizeInput = React.forwardRef<HTMLInputElement, Props>((props, r
onCommitChange(event);
}
}}
data-testid="autosize-input"
/>
</AutoSizeInputContext.Provider>
);