summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-07-18 09:24:57 +0200
committerGitHub <noreply@github.com>2022-07-18 09:24:57 +0200
commit9457ec8d49ff8508328c14de5115c3b865a8e2d2 (patch)
treeb9c779e9cd76a93d41a02228659392833377073b /apps
parente66ef215502525124d2853001ccf2e29b0d9dcaf (diff)
parent87320cba99229e065747d699461b1dddc54326f8 (diff)
downloadnextcloud-server-9457ec8d49ff8508328c14de5115c3b865a8e2d2.tar.gz
nextcloud-server-9457ec8d49ff8508328c14de5115c3b865a8e2d2.zip
Merge pull request #33247 from nextcloud/bugfix/noid/skip-button-ids
Allow to override #app-content and #app-navigation hrefs for content skipping
Diffstat (limited to 'apps')
-rw-r--r--apps/dashboard/css/dashboard.css8
-rw-r--r--apps/dashboard/css/dashboard.css.map2
-rw-r--r--apps/dashboard/css/dashboard.scss9
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php5
4 files changed, 5 insertions, 19 deletions
diff --git a/apps/dashboard/css/dashboard.css b/apps/dashboard/css/dashboard.css
index ea01e0f771b..2120a324e34 100644
--- a/apps/dashboard/css/dashboard.css
+++ b/apps/dashboard/css/dashboard.css
@@ -1,11 +1,3 @@
-.skip-navigation:not(.skip-content) {
- display: none;
-}
-
-.skip-navigation.skip-content {
- left: 3px;
-}
-
#header {
background: transparent !important;
--color-header: rgba(24, 24, 24, 1);
diff --git a/apps/dashboard/css/dashboard.css.map b/apps/dashboard/css/dashboard.css.map
index 15b99dd3883..48ecf846dfc 100644
--- a/apps/dashboard/css/dashboard.css.map
+++ b/apps/dashboard/css/dashboard.css.map
@@ -1 +1 @@
-{"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":"AACA;EACC;;;AAGD;EACC;;;AAGD;EACC;EACA;;AAEA;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAKF;EACC;;AAEA;EACC;;;AAMH;EACC;;;AAID;AAAA;AAAA;AAAA;EAIC","file":"dashboard.css"} \ No newline at end of file
+{"version":3,"sourceRoot":"","sources":["dashboard.scss"],"names":[],"mappings":"AAAA;EACC;EACA;;AAEA;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAKF;EACC;;AAEA;EACC;;;AAMH;EACC;;;AAID;AAAA;AAAA;AAAA;EAIC","file":"dashboard.css"} \ No newline at end of file
diff --git a/apps/dashboard/css/dashboard.scss b/apps/dashboard/css/dashboard.scss
index f8b8ec24037..de68786b4ac 100644
--- a/apps/dashboard/css/dashboard.scss
+++ b/apps/dashboard/css/dashboard.scss
@@ -1,12 +1,3 @@
-// Suppress "Skip to navigation of app" link since the app does not have a navigation
-.skip-navigation:not(.skip-content) {
- display: none;
-}
-// Fix position of "Skip to main content" link since the other link is gone
-.skip-navigation.skip-content {
- left: 3px;
-}
-
#header {
background: transparent !important;
--color-header: rgba(24, 24, 24, 1);
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index 3763b07e7bc..4d4f6a5f31c 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -133,7 +133,10 @@ class DashboardController extends Controller {
$this->inititalState->provideInitialState('version', $this->config->getUserValue($this->userId, 'dashboard', 'backgroundVersion', 0));
$this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0');
- $response = new TemplateResponse('dashboard', 'index');
+ $response = new TemplateResponse('dashboard', 'index', [
+ 'id-app-content' => '#app-dashboard',
+ 'id-app-navigation' => null,
+ ]);
// For the weather widget we should allow the geolocation
$featurePolicy = new Http\FeaturePolicy();