From 4f9fb5f25382e609346011c02810567c929e60b9 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 8 Dec 2019 18:03:26 -0800 Subject: [PATCH] fix: settings pages preserve focus (#1666) fixes #1658 --- .../_components/settings/SettingsLayout.html | 18 +++--- .../settings/SettingsListButton.html | 1 + .../_components/settings/SettingsNavItem.html | 1 + .../_pages/settings/instances/index.html | 61 ++++++++++--------- tests/spec/010-focus.js | 29 ++++++++- tests/utils.js | 4 ++ 6 files changed, 78 insertions(+), 36 deletions(-) diff --git a/src/routes/_components/settings/SettingsLayout.html b/src/routes/_components/settings/SettingsLayout.html index c42fc1f3..f2ba5d86 100644 --- a/src/routes/_components/settings/SettingsLayout.html +++ b/src/routes/_components/settings/SettingsLayout.html @@ -1,10 +1,12 @@ - + + -
- - - -
+
+ + + +
+