Skip to content

Commit

Permalink
Enable focustrap in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Apr 26, 2021
1 parent 83420dd commit 2cff477
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-focustrap-in-modal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Enable focus trap in oc-modal

After the recent changes in ODS, the oc-modal can now use
a focus-trap which is a feature needed for accessibility-reasons.

https://github.com/owncloud/web/pull/5013
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.2.0",
"owncloud-sdk": "^1.0.0-740",
"p-queue": "^6.1.1",
"tus-js-client": "^1.8.0",
Expand Down
1 change: 1 addition & 0 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
:title="modal.title"
:message="modal.message"
:has-input="modal.hasInput"
:focus-trap-active="true"
:input-label="modal.inputLabel"
:input-disabled="modal.inputDisabled"
:input-value="modal.inputValue"
Expand Down

0 comments on commit 2cff477

Please sign in to comment.