From f71d17e458da4610599e89c0073c068e24834190 Mon Sep 17 00:00:00 2001 From: arthur Date: Thu, 12 Dec 2024 17:32:16 +0800 Subject: [PATCH] Design Picker: Update filter styles --- .../design-picker-category-filter/index.tsx | 5 +- .../design-picker-category-filter/style.scss | 168 +++++++++--------- .../design-picker/src/components/style.scss | 78 -------- .../src/components/unified-design-picker.tsx | 2 - 4 files changed, 90 insertions(+), 163 deletions(-) diff --git a/packages/design-picker/src/components/design-picker-category-filter/index.tsx b/packages/design-picker/src/components/design-picker-category-filter/index.tsx index 1af0b1d717f74..66d52a1c914a8 100644 --- a/packages/design-picker/src/components/design-picker-category-filter/index.tsx +++ b/packages/design-picker/src/components/design-picker-category-filter/index.tsx @@ -1,9 +1,10 @@ import { ResponsiveToolbarGroup } from '@automattic/components'; +import clsx from 'clsx'; import type { Category } from '../../types'; import './style.scss'; interface Props { - className: string; + className?: string; categories: Category[]; selectedSlugs: string[]; isMultiSelection?: boolean; @@ -33,7 +34,7 @@ export default function DesignPickerCategoryFilter( { .filter( ( index ) => index >= 0 ); return ( = ( { { categorization && categoryTypes.length && isMultiFilterEnabled && ( = ( { { categorization && categoryTopics.length && (