Skip to content

Commit bd02e12

Browse files
committed
fix: mobile close icon and focus in issue
1 parent 3b7e8e7 commit bd02e12

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

packages/ui-components/src/Common/Search/Input/index.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
py-4
2323
pr-4
2424
pl-9
25-
text-sm
25+
text-base
2626
text-neutral-900
2727
placeholder:text-neutral-500
2828
focus:outline-none
29+
md:text-sm
2930
dark:border-neutral-900
3031
dark:text-neutral-200
3132
dark:placeholder:text-neutral-600;

packages/ui-components/src/Common/Search/Modal/index.module.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,17 @@
117117
lg:border
118118
dark:border-neutral-900;
119119
}
120+
121+
.modalCloseButton {
122+
@apply absolute
123+
top-2
124+
right-4
125+
z-10
126+
cursor-pointer
127+
bg-white
128+
px-2
129+
text-2xl
130+
text-neutral-950
131+
dark:bg-black
132+
dark:text-neutral-200;
133+
}

packages/ui-components/src/Common/Search/Modal/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const SearchModal: FC<PropsWithChildren<SearchModalProps>> = ({
4646
placeholder={placeholder}
4747
ariaLabel={placeholder}
4848
/>
49+
<Modal.Close className={styles.modalCloseButton} />
4950
{children}
5051
</Modal.Content>
5152
</Modal.Inner>

0 commit comments

Comments
 (0)