Use desktop overlay model for phone header menus

This commit is contained in:
Joe Julian
2026-04-08 20:40:20 -07:00
parent 7a50138640
commit 168927713c
2 changed files with 35 additions and 39 deletions
+13
View File
@@ -356,6 +356,19 @@ func TestUIMainMenuAnchorsMatchAcrossModes(t *testing.T) {
}
}
func TestUIHeaderMenusUseOverlayModelAcrossModes(t *testing.T) {
t.Parallel()
desktop := newUIWithSession("desktop", summarySession{hasVault: true})
desktop.state.Section = appstate.SectionEntries
phone := newUIWithSession("phone", summarySession{hasVault: true})
phone.state.Section = appstate.SectionEntries
if !desktop.headerMenusUseOverlayModel() || !phone.headerMenusUseOverlayModel() {
t.Fatal("header menus should use the same overlay model across desktop and phone")
}
}
func TestAnchoredMenuXAllowsWiderMenusToExtendLeft(t *testing.T) {
t.Parallel()