diff --git a/packages/react/src/components/Search/next/Search-test.js b/packages/react/src/components/Search/next/Search-test.js index 5b6bcf504e3f..c090db0a068a 100644 --- a/packages/react/src/components/Search/next/Search-test.js +++ b/packages/react/src/components/Search/next/Search-test.js @@ -124,6 +124,10 @@ describe('Search', () => { expect(type1).toEqual('button'); expect(type2).toEqual('button'); }); + + it('should have clear title', () => { + expect(btns.prop('title')).toBe('Clear search input'); + }); }); describe('icons', () => { diff --git a/packages/react/src/components/Search/next/Search.js b/packages/react/src/components/Search/next/Search.js index d22230411888..f604aa1e3b5d 100644 --- a/packages/react/src/components/Search/next/Search.js +++ b/packages/react/src/components/Search/next/Search.js @@ -135,6 +135,7 @@ const Search = React.forwardRef(function Search( className={clearClasses} disabled={disabled} onClick={clearInput} + title={closeButtonLabelText} type="button">