Input: Width prop (#23615)

* Add width property

* Remove unused import

* Spelling mistake

* Add width to interface

* Make width optional

* Remove size

* Update snapshot

* Remove size from places

* Add size prop for button

* Update width

* Update snapshots
This commit is contained in:
Tobias Skarhed
2020-04-21 10:42:57 +02:00
committed by GitHub
parent a2d741f60f
commit 9bbc007cb9
40 changed files with 94 additions and 131 deletions

View File

@@ -11,6 +11,7 @@ interface SearchFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
onChange: (query: string) => void;
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
clearable?: boolean;
width?: number;
}
const getSearchFieldStyles = (theme: GrafanaTheme) => ({

View File

@@ -58,7 +58,6 @@ export const SearchResultsFilter: FC<Props> = ({
) : (
<HorizontalGroup spacing="md">
<Select
size="sm"
placeholder="Filter by starred"
key={starredFilterOptions?.find(f => f.value === selectedStarredFilter)?.label}
options={starredFilterOptions}
@@ -66,7 +65,6 @@ export const SearchResultsFilter: FC<Props> = ({
/>
<TagFilter
size="sm"
placeholder="Filter by tag"
tags={selectedTagFilter}
tagOptions={searchSrv.getDashboardTags}