mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(day): raise the calendar as its own sheet on a phone
In the phone's bottom sheet the date sits halfway down the screen, and a month of finger-sized cells below it ran off the bottom, Today button and all. There the calendar now opens as a bottom sheet of its own and hands focus back to the date when it closes. The docked column and the side sheet keep the popover. The conversations panel's fold and unfold buttons carry a title instead of a tooltip: focus lands on them when the panel opens or folds, and a tooltip opened by that focus took the next Escape for itself.
This commit is contained in:
1 parent
b5f1077b94
commit
32a9624c82
4 files changed
+131
-78
No files matched your search
@@ -224,6 +224,17 @@ test.describe("the day view", () => {
|
||||
// The keyboard: Enter opens, Escape closes the calendar only.
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(picker).toBeVisible();
|
||||
// The calendar has the keyboard before Escape is pressed.
|
||||
await expect
|
||||
.poll(() =>
|
||||
page.evaluate(
|
||||
() =>
|
||||
document.activeElement?.closest(
|
||||
'[role="dialog"]:not([data-slot="day-panel"])',
|
||||
) != null,
|
||||
),
|
||||
)
|
||||
.toBe(true);
|
||||
await page.keyboard.press("Escape");
|
||||
await expect(picker).toHaveCount(0);
|
||||
await expect(panel(page)).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user