Skip to content

Commit

Permalink
Merge pull request #39609 from nextcloud/fix/focus-outline-favorites-…
Browse files Browse the repository at this point in the history
…view

fix(files): Remove duplicated outline on file name of vue file list
  • Loading branch information
susnux authored Aug 2, 2023
2 parents 0ec6efd + 88bbf38 commit 6ec35e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/files/src/components/FileEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<a v-show="!isRenaming"
ref="basename"
:aria-hidden="isRenaming"
class="files-list__row-name-link"
v-bind="linkTo"
@click="execDefaultAction">
<!-- File name -->
Expand Down
5 changes: 5 additions & 0 deletions apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ export default Vue.extend({
// Necessary for flex grow to work
min-width: 0;
// Already added to the inner text, see rule below
&:focus-visible {
outline: none;
}
// Keyboard indicator a11y
&:focus .files-list__row-name-text,
&:focus-visible .files-list__row-name-text {
Expand Down
4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

0 comments on commit 6ec35e3

Please sign in to comment.