Merge pull request #14116 from awanlin/topic/set-search-tooltip-to-filter
Set searchTooltip to Filter
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
Set the `searchTooltip` to "Filter" to follow how the `searchPlaceholder` is set making this more consistent
|
||||
@@ -516,7 +516,9 @@ export function Table<T extends object = {}>(props: TableProps<T>) {
|
||||
}
|
||||
data={typeof data === 'function' ? data : tableData}
|
||||
style={{ width: '100%' }}
|
||||
localization={{ toolbar: { searchPlaceholder: 'Filter' } }}
|
||||
localization={{
|
||||
toolbar: { searchPlaceholder: 'Filter', searchTooltip: 'Filter' },
|
||||
}}
|
||||
{...restProps}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -31,6 +31,10 @@ describe('ProblemsTable', () => {
|
||||
<ProblemsTable problems={problems} dynatraceBaseUrl="__dynatrace__" />,
|
||||
</ApiProvider>,
|
||||
);
|
||||
expect(await rendered.findByTitle('Search')).toBeInTheDocument();
|
||||
|
||||
// Checking for Title from mocked problems
|
||||
expect(
|
||||
await rendered.findByText('this IS a big problem'),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user