Parcourir la source

change to boostrap

reiji-h il y a 2 ans
Parent
commit
c3f30adc9e

+ 0 - 16
apps/app/src/features/search/client/components/SearchForm.module.scss

@@ -1,16 +0,0 @@
-
-.search-form :global {
-  position: relative;
-  width: 100%;
-
-  .search-cancel {
-    position: absolute;
-    top: 0px;
-    right: 0px;
-    z-index: 3;
-    width: auto;
-    height: 100%;
-    line-height: 0;
-    border: none;
-  }
-}

+ 2 - 2
apps/app/src/features/search/client/components/SearchForm.tsx

@@ -54,14 +54,14 @@ export const SearchForm = (props: Props): JSX.Element => {
 
   return (
     <form
-      className={`${styles['search-form']}`}
+      className="w-100 position-relative"
       onSubmit={submitHandler}
       data-testid="search-form"
     >
       <input {...inputOptions} />
       <button
         type="button"
-        className="btn btn-neutral-secondary search-cancel text-muted"
+        className="btn btn-neutral-secondary text-muted position-absolute top-0 end-0 h-100 border-0 lh-1"
         onClick={() => { onChange?.('') }}
       >
         <span className="material-symbols-outlined p-0">cancel</span>