Skip to content

Commit

Permalink
Bump ODS to 6.1.0 & add necessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Apr 22, 2021
1 parent 481d09c commit 07c92ea
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/enhancement-bump-ods-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Update owncloud Design System to v6.1.0

- Lots of updates regarding accessibility topics
- Removal of home icon in breadcrumbs, changed to "All files" link as breadcrumb root
- Added aria-label to sidebar and proper logo-alt attribute to image in sidebar

https://github.com/owncloud/web/pull/5002
2 changes: 1 addition & 1 deletion packages/web-app-files/src/components/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default {
baseUrl = '/files/list/all/'
pathItems.push('/') // as of now we need to add the url encoded root path `/`, otherwise we'll land in the configured homeFolder
breadcrumbs.push({
text: this.$gettext('Home'),
text: this.$gettext('All files'),
to: baseUrl + encodeURIComponent(pathUtil.join(...pathItems))
})
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-app-files/src/views/LocationPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default {
breadcrumbs.push(this.createBreadcrumbNode(i + 1, pathSegments[i], itemPath))
}
} else {
breadcrumbs.push(this.createBreadcrumbNode(0, this.$gettext('Home'), '/'))
breadcrumbs.push(this.createBreadcrumbNode(0, this.$gettext('All files'), '/'))
for (let i = 0; i < pathSegments.length; i++) {
const itemPath = encodeURIComponent(join.apply(null, pathSegments.slice(0, i + 1)))
breadcrumbs.push(this.createBreadcrumbNode(i + 1, pathSegments[i], itemPath))
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"luxon": "^1.22.0",
"moment": "^2.24.0",
"oidc-client": "1.10.1",
"owncloud-design-system": "^6.0.1",
"owncloud-design-system": "^6.1.0",
"owncloud-sdk": "^1.0.0-740",
"p-queue": "^6.1.1",
"tus-js-client": "^1.8.0",
Expand Down
11 changes: 8 additions & 3 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
v-touch:swipe.left="handleNavSwipe"
class="oc-app-navigation"
:logo-img="logoImage"
:product-name="productName"
:logo-alt="sidebarLogoAlt"
:nav-items="sidebarNavItems"
:hide-nav="sidebar.navigationHidden"
:class="sidebarClasses"
:fixed="isSidebarFixed"
:accessible-label="accessibleLabel"
@close="toggleAppNavigationVisibility"
>
<template v-if="sidebar.mainContentComponent" v-slot:mainContent>
Expand Down Expand Up @@ -151,8 +152,12 @@ export default {
return this.configuration.theme.logo.sidebar
},
productName() {
return this.configuration.theme.general.name
accessibleLabel() {
return this.$gettext('Sidebar navigation menu')
},
sidebarLogoAlt() {
return this.$gettext('Navigate to all files page')
},
sidebarNavItems() {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7604,10 +7604,10 @@ [email protected]:
dependencies:
glob "^7.1.3"

owncloud-design-system@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/owncloud-design-system/-/owncloud-design-system-6.0.1.tgz#bfa8a797fd35b38d320ec7e8e74683c9dd1278be"
integrity sha512-nLcXRMYdcX7UDS3UkWim7urLOx00u2VUP+01SSpeN5Liuufh8UR88ENLIRW+fqcIPPGhu15qlr1JsV5+0MDgEA==
owncloud-design-system@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/owncloud-design-system/-/owncloud-design-system-6.1.0.tgz#98be5a0dde108c296af96f5f24e652a1ffaf5fce"
integrity sha512-YOkHBQa21gglYywJ1z1hKtcEX99/c2TpD9QzoSpJ7DL5569zjWXOEoBDbaYkOBZVY+ofeVWiV/uIkck+AI+Sjg==

owncloud-sdk@^1.0.0-740:
version "1.0.0-1716"
Expand Down

0 comments on commit 07c92ea

Please sign in to comment.