summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/toolbar/search.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/toolbar/search.tsx')
-rw-r--r--src/components/organisms/toolbar/search.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/organisms/toolbar/search.tsx b/src/components/organisms/toolbar/search.tsx
index 5695348..dc71c49 100644
--- a/src/components/organisms/toolbar/search.tsx
+++ b/src/components/organisms/toolbar/search.tsx
@@ -1,6 +1,6 @@
import Checkbox, { type CheckboxProps } from '@components/atoms/forms/checkbox';
-import Label from '@components/atoms/forms/label';
import MagnifyingGlass from '@components/atoms/icons/magnifying-glass';
+import FlippingLabel from '@components/molecules/forms/flipping-label';
import { forwardRef, ForwardRefRenderFunction } from 'react';
import { useIntl } from 'react-intl';
import SearchModal, { type SearchModalProps } from '../modals/search-modal';
@@ -52,13 +52,14 @@ const Search: ForwardRefRenderFunction<HTMLDivElement, SearchProps> = (
setValue={setIsActive}
className={`${sharedStyles.checkbox} ${searchStyles.checkbox}`}
/>
- <Label
+ <FlippingLabel
+ className={sharedStyles.label}
htmlFor="search-button"
aria-label={label}
- className={`${sharedStyles.label} ${searchStyles.label}`}
+ isActive={isActive}
>
<MagnifyingGlass />
- </Label>
+ </FlippingLabel>
<SearchModal
searchPage={searchPage}
className={`${sharedStyles.modal} ${searchStyles.modal} ${className}`}