AAE-25888 Offset SearchTextInput expansion based on search icon width (#10213)

* AAE-25888 use negative margin and transform by full width

* AAE-25888 update tests

* AAE-25888 add adf-search-button-inactive to manage search icon offset

* AAE-25888 remove scss variable

* AAE-25888 adjust peer unit tests
This commit is contained in:
Wojciech Duda
2024-09-19 17:31:08 +02:00
committed by GitHub
parent 1ff5e8f43c
commit 4998bddfde
5 changed files with 31 additions and 9 deletions

View File

@@ -415,13 +415,13 @@ describe('SearchControlComponent', () => {
it('should have positive transform translation', () => {
userPreferencesService.setWithoutStore('textOrientation', 'ltr');
fixture.detectChanges();
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(85%)');
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(100%)');
});
it('should have negative transform translation ', () => {
userPreferencesService.setWithoutStore('textOrientation', 'rtl');
fixture.detectChanges();
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-85%)');
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-100%)');
});
});
});