-
{names[i]}
+
+ {names[i]}
+
{day.closed || allDay ? (
-
{day.closed ? t('places.hoursClosed') : t('places.hoursAllDay')}
+
+ {day.closed ? t('places.hoursClosed') : t('places.hoursAllDay')}
+
) : (
@@ -160,6 +170,7 @@ export function PlContactFields({
aria-label={`${longNames[i]}: ${t('places.hoursAllDay')}`}
onClick={() => hours.toggleAllDay(i)}
className={`${DAY_BUTTON} ${allDay ? DAY_BUTTON_ON : DAY_BUTTON_OFF}`}
+ style={fs(11, 'caption')}
>
24h
diff --git a/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx b/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
index cbfee6d89..255ec1f72 100644
--- a/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlFileAttach.tsx
@@ -41,10 +41,10 @@ export default function PlFileAttach({ planner, files, onAdd, onRemove, canAttac
{t('files.title')}
{(canAttach || canLink) && (
- {canAttach &&
inputRef.current?.click()} />}
{canLink && (
setPicking(v => !v)} pressed={picking} ariaExpanded={picking} />
)}
+ {canAttach && inputRef.current?.click()} />}
)}
{t('places.textsLabel')}
-
value={shown.field}
onChange={setActive}
options={tabs.map((tab) => ({
@@ -57,7 +58,9 @@ export function PlPlaceTexts({
aria-label={tab.aria}
className={FIELD_AREA_CLS}
/>
- {tab.hint}
+
+ {tab.hint}
+
))}
diff --git a/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx b/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
index 111ebf15b..d85afa869 100644
--- a/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlSheetChrome.tsx
@@ -3,6 +3,7 @@ import { Plus, Trash2, X } from 'lucide-react'
import type { LucideIcon } from 'lucide-react'
import MIconBtn from '../../../components/MIconBtn'
import { edgeFadeClass, useEdgeFade } from '../../../components/useEdgeFade'
+import { fs } from '../../../../components/shared/DialogShell'
import { CustomDatePicker } from '../../../../components/shared/CustomDateTimePicker'
/**
@@ -58,7 +59,7 @@ export function AddFieldButton({ icon: Icon, label, onClick, disabled, pressed,
className={`${SELECT_FIELD_CLS} gap-[10px] text-start disabled:opacity-40 ${pressed ? '!border-transparent !bg-m-act text-m-actfg' : 'text-m-faint'}`}
>
-
{label}
+
{label}
)
diff --git a/client/src/mobile/screens/trip/sheets/PlTags.tsx b/client/src/mobile/screens/trip/sheets/PlTags.tsx
index cdd1dc01a..ce88cc4b8 100644
--- a/client/src/mobile/screens/trip/sheets/PlTags.tsx
+++ b/client/src/mobile/screens/trip/sheets/PlTags.tsx
@@ -20,14 +20,14 @@ const CHIP =
const CHIP_OFF = 'border-[color:var(--m-rowbr)] bg-[color:var(--m-card)]';
const DOT_BUTTON = 'grid h-[30px] w-[26px] flex-none place-items-center ps-[3px]';
const DOT = 'h-[12px] w-[12px] rounded-full ring-1 ring-inset ring-[color:var(--m-rowbr)]';
-const NAME_BUTTON = 'inline-flex h-full min-w-0 items-center gap-[5px] text-[0.75rem] font-semibold';
+const NAME_BUTTON = 'inline-flex h-full min-w-0 items-center gap-[5px] text-caption font-semibold';
/** The tick of a picked tag, in a round white badge. */
const TICK =
'me-[3px] grid h-[22px] w-[22px] flex-none place-items-center rounded-full bg-[color:var(--m-card)] shadow-sm';
/** Where a new tag is typed: the rest of the field's line, at least wide enough for a short name. */
const NEW_TAG = 'flex h-[30px] min-w-[9rem] flex-1 items-center gap-[6px]';
const NEW_INPUT =
- 'min-w-0 flex-1 bg-transparent font-[inherit] text-[0.75rem] font-semibold text-m-ink outline-none placeholder:font-medium placeholder:text-m-faint';
+ 'min-w-0 flex-1 bg-transparent font-[inherit] text-caption font-semibold text-m-ink outline-none placeholder:font-medium placeholder:text-m-faint';
const ADD_BUTTON = 'grid h-[30px] w-[30px] flex-none place-items-center rounded-full';
/** The palette laid into the sheet under the field, in the sheet's own surface. */
const PALETTE =
diff --git a/client/tests/unit/mobile/trip/MPlaceEditSheet.test.tsx b/client/tests/unit/mobile/trip/MPlaceEditSheet.test.tsx
index c0d43d6ba..4e5b0d3f1 100644
--- a/client/tests/unit/mobile/trip/MPlaceEditSheet.test.tsx
+++ b/client/tests/unit/mobile/trip/MPlaceEditSheet.test.tsx
@@ -77,7 +77,7 @@ describe('MPlaceEditSheet', () => {
expect(screen.getByPlaceholderText('places.formLatLabel')).toHaveValue('35.7148')
expect(screen.getByPlaceholderText('places.formLngLabel')).toHaveValue('139.7967')
expect(screen.getByPlaceholderText('https://')).toHaveValue('https://senso-ji.jp')
- expect(screen.getByRole('button', { name: /Food/ }).className).toContain('bg-m-act')
+ expect(screen.getByRole('button', { name: /^places.formCategory:/ })).toHaveAccessibleName('places.formCategory: Food')
expect(submit()).toHaveTextContent('common.save')
})
@@ -135,6 +135,7 @@ describe('MPlaceEditSheet', () => {
fireEvent.change(nameField(), { target: { value: 'Nakamise' } })
fireEvent.change(screen.getByPlaceholderText('places.formLatLabel'), { target: { value: '35.71' } })
fireEvent.change(screen.getByPlaceholderText('places.formLngLabel'), { target: { value: '139.79' } })
+ fireEvent.click(screen.getByRole('button', { name: /^places.formCategory:/ }))
fireEvent.click(screen.getByRole('button', { name: /Food/ }))
fireEvent.click(submit())
diff --git a/client/tests/unit/mobile/trip/PlCategoryPicker.test.tsx b/client/tests/unit/mobile/trip/PlCategoryPicker.test.tsx
index 8dc2266bf..d36926385 100644
--- a/client/tests/unit/mobile/trip/PlCategoryPicker.test.tsx
+++ b/client/tests/unit/mobile/trip/PlCategoryPicker.test.tsx
@@ -49,7 +49,7 @@ describe('PlCategoryPicker', () => {
setup({}, '4')
expect(field()).toHaveAccessibleName('places.formCategory: Museums')
openList()
- expect(screen.getByRole('button', { name: /Museums/ })).toHaveAttribute('aria-pressed', 'true')
+ expect(screen.getByRole('button', { name: 'Museums' })).toHaveAttribute('aria-pressed', 'true')
expect(screen.getByRole('button', { name: /^places.noCategory$/ })).toHaveAttribute('aria-pressed', 'false')
})