Skip to content

Commit

Permalink
[Global Search Bar] Ensure visible accessibility of search bar contro…
Browse files Browse the repository at this point in the history
…ls with low DPI
  • Loading branch information
tsullivan committed Jul 6, 2023
1 parent 1d78311 commit c36977e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
euiSelectableTemplateSitewideRenderOptions,
useEuiTheme,
} from '@elastic/eui';
import { css } from '@emotion/react';
import type { GlobalSearchFindParams, GlobalSearchResult } from '@kbn/global-search-plugin/public';
import React, { FC, useCallback, useEffect, useRef, useState } from 'react';
import useDebounce from 'react-use/lib/useDebounce';
Expand Down Expand Up @@ -317,6 +318,12 @@ export const SearchBar: FC<SearchBarProps> = (opts) => {
popoverButtonBreakpoints={['xs', 's']}
singleSelection={true}
renderOption={(option) => euiSelectableTemplateSitewideRenderOptions(option, searchTerm)}
listProps={{
className: 'eui-yScroll',
css: css`
max-block-size: 75vh;
`,
}}
searchProps={{
autoFocus: chromeStyle === 'project',
value: searchValue,
Expand Down

0 comments on commit c36977e

Please sign in to comment.