diff --git a/.betterer.results b/.betterer.results index 1eff969d13d..637cefd8924 100644 --- a/.betterer.results +++ b/.betterer.results @@ -1232,10 +1232,6 @@ exports[`better eslint`] = { [0, 0, 0, "Styles should be written using objects.", "5"], [0, 0, 0, "Styles should be written using objects.", "6"] ], - "public/app/core/components/TagFilter/TagOption.tsx:5381": [ - [0, 0, 0, "Styles should be written using objects.", "0"], - [0, 0, 0, "Styles should be written using objects.", "1"] - ], "public/app/core/components/TimeSeries/utils.ts:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Do not use any type assertions.", "1"], diff --git a/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx b/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx index 63f4ed4a10e..c1365403da6 100644 --- a/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx +++ b/packages/grafana-ui/src/components/Typeahead/Typeahead.tsx @@ -1,9 +1,10 @@ +import { css } from '@emotion/css'; import { isEqual } from 'lodash'; import React, { createRef, PureComponent } from 'react'; import ReactDOM from 'react-dom'; import { FixedSizeList } from 'react-window'; -import { ThemeContext } from '@grafana/data'; +import { GrafanaTheme2, ThemeContext } from '@grafana/data'; import { CompletionItem, CompletionItemGroup, CompletionItemKind } from '../../types/completion'; import { flattenGroupItems, calculateLongestLabel, calculateListSizes } from '../../utils/typeahead'; @@ -157,13 +158,14 @@ export class Typeahead extends PureComponent { render() { const { prefix, isOpen = false, origin } = this.props; const { allItems, listWidth, listHeight, itemHeight, hoveredItem, typeaheadIndex } = this.state; + const styles = getStyles(this.context); const showDocumentation = hoveredItem || typeaheadIndex; const documentationItem = allItems[hoveredItem ? hoveredItem : typeaheadIndex || 0]; return ( -