Skip to content

Commit

Permalink
feat: add placeholder to datagrid string filter
Browse files Browse the repository at this point in the history
This is a backport of 1cffda0.

Committed-by: Kevin Buhmann <kbuhmann@vmware.com>
  • Loading branch information
steve-haar authored and kevinbuhmann committed Jun 8, 2022
1 parent ec7d423 commit 77dc157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -122,6 +122,13 @@ export default function (): void {
expect(input.getAttribute('aria-label')).toBe('Filter items');
tick();
}));

it('has placeholder on the input', fakeAsync(function () {
openFilter();
const input: HTMLInputElement = document.querySelector("input[type='text']");
expect(input.getAttribute('placeholder')).toBe('Filter items');
tick();
}));
});
}

Expand Down
Expand Up @@ -29,6 +29,7 @@ import { DatagridStringFilterImpl } from './datagrid-string-filter-impl';
[(ngModel)]="value"
class="clr-input"
[attr.aria-label]="commonStrings.keys.filterItems"
[placeholder]="commonStrings.keys.filterItems"
/>
</clr-dg-filter>
`,
Expand Down

0 comments on commit 77dc157

Please sign in to comment.