diff --git a/changelog/unreleased/enhancement-select-roles b/changelog/unreleased/enhancement-select-roles
new file mode 100644
index 00000000000..8d1e2b1cfcb
--- /dev/null
+++ b/changelog/unreleased/enhancement-select-roles
@@ -0,0 +1,6 @@
+Enhancement: Use `oc-select` for role select
+
+We've used the new `oc-select` component from ODS for selecting role in people and public links accordions in the right sidebar.
+We are using this component to enable keyboard navigation when selecting the role.
+
+https://github.com/owncloud/web/pull/4937
\ No newline at end of file
diff --git a/packages/web-app-files/src/components/Collaborators/Collaborator.vue b/packages/web-app-files/src/components/Collaborators/Collaborator.vue
index 8d285085ae1..ce132d1aa53 100644
--- a/packages/web-app-files/src/components/Collaborators/Collaborator.vue
+++ b/packages/web-app-files/src/components/Collaborators/Collaborator.vue
@@ -266,11 +266,8 @@ export default {
},
originalRole() {
- if (this.collaborator.role.name === 'advancedRole') {
- return this.advancedRole
- }
+ const role = this.displayRoles.find(r => r.name === this.collaborator.role.name)
- const role = this.displayRoles[this.collaborator.role.name]
if (role) {
return role
}
diff --git a/packages/web-app-files/src/components/Collaborators/CollaboratorsEditOptions.vue b/packages/web-app-files/src/components/Collaborators/CollaboratorsEditOptions.vue
index 12b166bd0f3..e6cd537c4b0 100644
--- a/packages/web-app-files/src/components/Collaborators/CollaboratorsEditOptions.vue
+++ b/packages/web-app-files/src/components/Collaborators/CollaboratorsEditOptions.vue
@@ -1,22 +1,33 @@
-
-
+