fix: QA 버그 5건 수정 — 뒤로 가기로 시트 닫기, 로그인 후 댓글 복귀, 터치 영역 44px, 순위 대기 칩 비활성, 위치 찾기 후 지역 시트 닫기
This commit is contained in:
1 parent
471353212a
commit
f1846ddf66
8 files changed
+72
-33
No files matched your search
@@ -109,9 +109,12 @@ export function Rail({ children, className, label }: { children: ReactNode; clas
|
||||
)
|
||||
}
|
||||
|
||||
type ChipsProps<K extends string> = { items: readonly (readonly [K, string])[]; value: K; onChange: (k: K) => void; label: string }
|
||||
// 보이는 크기는 두고 누르는 영역만 가운데 44×44로 넓힌다 (위치 지정된 요소에 붙인다)
|
||||
export const TAP44 = 'after:absolute after:top-1/2 after:left-1/2 after:size-11 after:-translate-1/2'
|
||||
|
||||
export function Chips<K extends string>({ items, value, onChange, label }: ChipsProps<K>) {
|
||||
type ChipsProps<K extends string> = { items: readonly (readonly [K, string])[]; value: K; onChange: (k: K) => void; label: string; disabled?: boolean }
|
||||
|
||||
export function Chips<K extends string>({ items, value, onChange, label, disabled }: ChipsProps<K>) {
|
||||
return (
|
||||
<ChipStrip label={label}>
|
||||
{items.map(([k, l]) => (
|
||||
@@ -119,8 +122,9 @@ export function Chips<K extends string>({ items, value, onChange, label }: Chips
|
||||
key={k}
|
||||
type="button"
|
||||
aria-pressed={value === k}
|
||||
disabled={disabled}
|
||||
onClick={() => onChange(k)}
|
||||
className={cx('shrink-0 cursor-pointer rounded-full px-3.5 py-[7px] text-[13.5px] font-bold', value === k ? 'bg-(--ink) text-white' : 'bg-white text-(--ink2) shadow-[inset_0_-3px_0_var(--shade)]')}
|
||||
className={cx('shrink-0 cursor-pointer rounded-full disabled:cursor-default px-3.5 py-[7px] text-[13.5px] font-bold', value === k ? 'bg-(--ink) text-white' : 'bg-white text-(--ink2) shadow-[inset_0_-3px_0_var(--shade)]')}
|
||||
>
|
||||
{l}
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user