Skip to content

Commit

Permalink
Merge pull request #2282 from nextcloud/backport/2231/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(a11y): Return focus to Add button on dialog close
  • Loading branch information
Pytal authored Feb 2, 2024
2 parents 1a6e304 + 84cfdeb commit f47d336
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_components_Albums_AlbumForm_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_components_Albums_AlbumForm_vue.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_AlbumContent_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_AlbumContent_vue.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_Albums_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_Albums_vue.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/components/Albums/AlbumForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
type="text"
name="name"
:required="true"
autofocus="true"
:label="t('photos', 'Name of the album')" />
<NcTextField :value.sync="albumLocation"
name="location"
Expand Down
2 changes: 2 additions & 0 deletions src/views/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<div class="timeline__header__left">
<!-- TODO: UploadPicker -->
<NcActions v-if="selectedFileIds.length === 0"
ref="addActions"
:force-menu="true"
:menu-name="t('photos', 'Add')">
<template #icon>
Expand Down Expand Up @@ -126,6 +127,7 @@

<NcModal v-if="showAlbumCreationForm"
key="albumCreationForm"
:set-return-focus="$refs.addActions?.$refs.menuButton?.$el"
@close="showAlbumCreationForm = false">
<h2 class="timeline__heading">
{{ t('photos', 'New album') }}
Expand Down

0 comments on commit f47d336

Please sign in to comment.