mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
fix(ui): refine trip forms and planner empty states
This commit is contained in:
@@ -199,7 +199,8 @@ export interface HeaderTitleInput {
|
||||
/** The field's accessible name, e.g. the old "Title *" label. */
|
||||
label: string
|
||||
placeholder?: string
|
||||
autoFocus?: boolean
|
||||
autoFocus?: boolean;
|
||||
readOnly?: boolean;
|
||||
required?: boolean
|
||||
maxLength?: number
|
||||
onKeyDown?: (e: ReactKeyboardEvent<HTMLInputElement>) => void
|
||||
@@ -253,6 +254,7 @@ export function DialogHeader(p: DialogHeaderProps) {
|
||||
aria-label={f.label}
|
||||
placeholder={f.placeholder}
|
||||
ref={f.autoFocus ? focusRevealedEditor : undefined}
|
||||
readOnly={f.readOnly}
|
||||
required={f.required}
|
||||
maxLength={f.maxLength}
|
||||
className="-mx-2 block w-[calc(100%+16px)] rounded-[10px] border-0 bg-transparent px-2 py-0.5 font-bold tracking-[-0.01em] text-content outline-none placeholder:font-semibold placeholder:text-content-faint hover:bg-surface-card focus:bg-surface-card focus:shadow-sm dark:bg-transparent dark:hover:bg-surface-card dark:focus:bg-surface-card"
|
||||
|
||||
Reference in New Issue
Block a user