fix(icons): replace hand-rolled inline SVGs with Lucide (header, search)
Header: same magnifying-glass path was hand-duplicated twice with two different hex fills (#576463 desktop, #1e3c38 mobile) - now one app-icon name="search", color inherited via currentColor. Wishlist/ compare buttons used bare '♥'/'⇄' text glyphs, entirely outside any icon system - replaced with heart/scale icons. Cart icon, mobile-menu home/catalog icons, and three duplicated inline chevron SVGs replaced with app-icon equivalents. Cleaned up now-dead CSS that targeted the old raw svg/path selectors. Search: the same magnifying-glass path was hand-duplicated 4 times (input icon, empty-query state, no-results state, no-query state) at three sizes and three colors. Replaced all four with app-icon, preserving each state's intended color via a color property on the wrapper (icons default to currentColor). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,10 +12,11 @@ import { TranslateService } from '../../i18n/translate.service';
|
||||
import { SEARCH_DEBOUNCE_MS, ITEMS_PER_PAGE, SCROLL_THRESHOLD_PX, SCROLL_DEBOUNCE_MS } from '../../config/constants';
|
||||
import { ProductFacade } from '../../facades/platform/product.facade';
|
||||
import { ProductCardComponent } from '../../components/product-card/product-card.component';
|
||||
import { IconComponent } from '../../shared/ui/icon/icon.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
imports: [FormsModule, TranslatePipe, ProductCardComponent],
|
||||
imports: [FormsModule, TranslatePipe, ProductCardComponent, IconComponent],
|
||||
templateUrl: './search.component.html',
|
||||
styleUrls: ['./search.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
|
||||
Reference in New Issue
Block a user