Browse Source

apply text-bg-primary

Shun Miyazawa 2 years ago
parent
commit
92fea2c167

+ 0 - 9
apps/app/src/features/search/client/components/SearchMenuItem.module.scss

@@ -1,9 +0,0 @@
-.search-menu-item :global {
-  li {
-    cursor: pointer;
-  }
-
-  li.active {
-    background-color: aqua;
-  }
-}

+ 4 - 8
apps/app/src/features/search/client/components/SearchMenuItem.tsx

@@ -2,8 +2,6 @@ import React from 'react';
 
 
 import type { GetItemProps } from '../interfaces/downshift';
 import type { GetItemProps } from '../interfaces/downshift';
 
 
-import styles from './SearchMenuItem.module.scss';
-
 type Props = {
 type Props = {
   url: string
   url: string
   index: number
   index: number
@@ -21,15 +19,13 @@ export const SearchMenuItem = (props: Props): JSX.Element => {
     getItemProps({
     getItemProps({
       index,
       index,
       item: { url },
       item: { url },
-      className: `text-muted d-flex p-1 ${isActive ? 'active' : ''}`,
+      className: `d-flex p-1 ${isActive ? 'text-bg-primary' : ''}`,
     })
     })
   );
   );
 
 
   return (
   return (
-    <div className={`search-menu-item ${styles['search-menu-item']}`}>
-      <li {...itemMenuOptions}>
-        { children }
-      </li>
-    </div>
+    <li {...itemMenuOptions}>
+      { children }
+    </li>
   );
   );
 };
 };

+ 1 - 1
apps/app/src/features/search/client/components/SearchResultMenuItem.tsx

@@ -62,7 +62,7 @@ export const SearchResultMenuItem = (props: Props): JSX.Element => {
               <PagePathLabel path={item.data.path} />
               <PagePathLabel path={item.data.path} />
             </span>
             </span>
 
 
-            <span className="ms-2 text-muted d-flex justify-content-center align-items-center">
+            <span className="ms-2 d-flex justify-content-center align-items-center">
               <span className="material-symbols-outlined fs-5">footprint</span>
               <span className="material-symbols-outlined fs-5">footprint</span>
               <span>{item.data.seenUsers.length}</span>
               <span>{item.data.seenUsers.length}</span>
             </span>
             </span>