+
+
+
Search the Umbraco backoffice
+
Search for content nodes, media nodes etc. - This will do a search for the
+ entire backoffice.
+
@@ -15,10 +22,10 @@
ng-model-options="{ debounce: 200 }"
ng-change="vm.search(vm.searchQuery)"
localize="placeholder"
- placeholder="@placeholders_search"
+ placeholder="@placeholders_search"
id="app-search"
focus-when="{{vm.searchHasFocus}}" />
-
+
Clear
From fd5c617257c2bfc9f89b53bddd050f9abc1e980c Mon Sep 17 00:00:00 2001
From: BatJan <1932158+BatJan@users.noreply.github.com>
Date: Fri, 2 Oct 2020 10:46:35 +0200
Subject: [PATCH 2/4] Add sr-only texts and useful aria attributes
---
.../components/application/umb-search.html | 24 +++++++++++++------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
index 7c6522b720db..9263c4efb56f 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
@@ -4,17 +4,18 @@
Search the Umbraco backoffice
-
Search for content nodes, media nodes etc. - This will do a search for the
- entire backoffice.
+
Search for content nodes, media nodes etc. across the backoffice.
-
+
Search...
+ When autocomplete results are available, press up and down arrows,
+ or use the tab key and use the enter key to select.
Search the Umbraco backoffice
localize="placeholder"
placeholder="@placeholders_search"
id="app-search"
- focus-when="{{vm.searchHasFocus}}" />
+ focus-when="{{vm.searchHasFocus}}"
+ aria-describedby="search-input-description"
+ aria-expanded="false"
+ aria-owns="search-results"
+ aria-autocomplete="both"
+ />
Clear
-
-
{{key}}
+
From db98602cf474d50a604f01eda90f9fccae00950c Mon Sep 17 00:00:00 2001
From: BatJan <1932158+BatJan@users.noreply.github.com>
Date: Fri, 2 Oct 2020 11:22:39 +0200
Subject: [PATCH 3/4] Convert i to umb-icon and fix wrong values in aria
attributes
---
.../src/views/components/application/umb-search.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
index 9263c4efb56f..b2d956a18d31 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
@@ -27,9 +27,9 @@
Search the Umbraco backoffice
id="app-search"
focus-when="{{vm.searchHasFocus}}"
aria-describedby="search-input-description"
- aria-expanded="false"
+ aria-expanded="{{vm.hasResults}}"
aria-owns="search-results"
- aria-autocomplete="both"
+ aria-autocomplete="list"
/>
Clear
@@ -42,7 +42,7 @@ Search the Umbraco backoffice
-
+
{{result.name}}
From 96ce3e21050342a501194c43209946f9b13977f1 Mon Sep 17 00:00:00 2001
From: BatJan <1932158+BatJan@users.noreply.github.com>
Date: Fri, 2 Oct 2020 12:01:46 +0200
Subject: [PATCH 4/4] Add translation mappings
---
.../components/application/umb-search.html | 24 ++++++++++++++-----
src/Umbraco.Web.UI/Umbraco/config/lang/en.xml | 5 ++++
.../Umbraco/config/lang/en_us.xml | 5 ++++
3 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
index b2d956a18d31..76098d1308ff 100644
--- a/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
+++ b/src/Umbraco.Web.UI.Client/src/views/components/application/umb-search.html
@@ -3,8 +3,13 @@
aria-labelledby="search-overlay-title" aria-describedby="search-overlay-description">
-
Search the Umbraco backoffice
-
Search for content nodes, media nodes etc. across the backoffice.
+
+ Search the Umbraco backoffice
+
+
+ Search for content nodes, media nodes etc. across the
+ backoffice.
+
@@ -14,8 +19,11 @@
Search the Umbraco backoffice
Search...
- When autocomplete results are available, press up and down arrows,
- or use the tab key and use the enter key to select.
+
+ When autocomplete results are available, press up and
+ down arrows,
+ or use the tab key and use the enter key to select.
+
Search the Umbraco backoffice
{{result.name}}
- Path:
+
+ Path:
+
{{result.subTitle}}
- Found in {{key}}
+
+ Found in {{key}}
+
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
index 63963dcc46ba..acd14b0accfc 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
@@ -2278,6 +2278,11 @@ To manage your website, simply open the Umbraco back office and start adding con
Has translation
Missing translation
Dictionary items
+ Search the Umbraco backoffice
+ Search for content nodes, media nodes etc. across the backoffice.
+ When autocomplete results are available, press up and down arrows, or use the tab key and use the enter key to select.
+ Path:
+ Found in
References
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
index 3ede47755de6..80fedddc067c 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
@@ -2300,6 +2300,11 @@ To manage your website, simply open the Umbraco back office and start adding con
Has translation
Missing translation
Dictionary items
+ Search the Umbraco backoffice
+ Search for content nodes, media nodes etc. across the backoffice.
+ When autocomplete results are available, press up and down arrows, or use the tab key and use the enter key to select.
+ Path:
+ Found in
References