Skip to content

Commit

Permalink
adjust add button
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Aug 15, 2023
1 parent 89f66a5 commit 97b9429
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,11 @@ table.dragshadow td.size {

.app-files .actions .button.new {
position: relative;
width: unset;
gap: 5px;
background-color: var(--color-primary-element-light);
color: var(--color-primary-element-light-text);
border: var(--color-border-maxcontrast) 1px solid;
}

.breadcrumb {
Expand Down
3 changes: 2 additions & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3846,7 +3846,8 @@
return;
}
var $newButton = $(OCA.Files.Templates['template_addbutton']({
addText: t('files', 'New file/folder menu'),
addText: t('files', 'New'),
addLongText: t('files', 'New file/folder menu'),
iconClass: 'icon-add',
}));

Expand Down
4 changes: 2 additions & 2 deletions apps/files/js/templates/template_addbutton.handlebars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="#" class="button new">
<a href="#" class="button new" aria-label="{{addLongText}}">
<span class="icon {{iconClass}}"></span>
<span class="hidden-visually">{{addText}}</span>
<span>{{addText}}</span>
</a>

0 comments on commit 97b9429

Please sign in to comment.