Skip to content

Commit

Permalink
feature(3): add component
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienloup committed Aug 23, 2024
1 parent 8214370 commit 0792347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/components/Product/Product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const ProductComponent = memo(({ cssClass, product }: ProductProps) => {
return (
<div
className={[styles.product, cssClass ? ` ${cssClass}` : ''].join('')}
tabIndex={0}
onClick={() => {
goTo(`/one/product/${product.route}`);
}}
Expand Down
11 changes: 4 additions & 7 deletions src/components/Search/Search.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,17 @@ $mobile-portrait: 768px;
}

.active & {
padding: 0.75rem;
padding: 0.5rem;
background-color: var(--color-5);
font-size: 1.25rem;
font-size: 1rem;
color: var(--color-2);
animation: Appear 0.35s var(--easy-in-out-quad);

@media (max-width: $mobile-portrait) {
padding: 0.5rem;
font-size: 1rem;
}

&:hover,
&:focus-visible {
outline: none;
background-color: var(--color-4);
color: var(--color-1);
}
}
}
Expand Down

0 comments on commit 0792347

Please sign in to comment.