Skip to content

Commit

Permalink
adjust add button
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Aug 15, 2023
1 parent 89f66a5 commit 30f00ed
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 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
8 changes: 5 additions & 3 deletions apps/files/js/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,12 @@ templates['template_addbutton'] = template({"compiler":[8,">= 4.3.0"],"main":fun
return undefined
};

return "<a href=\"#\" class=\"button new\">\n <span class=\"icon "
return "<a href=\"#\" class=\"button new\" aria-label=\""
+ alias4(((helper = (helper = lookupProperty(helpers,"addLongText") || (depth0 != null ? lookupProperty(depth0,"addLongText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addLongText","hash":{},"data":data,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":58}}}) : helper)))
+ "\">\n <span class=\"icon "
+ alias4(((helper = (helper = lookupProperty(helpers,"iconClass") || (depth0 != null ? lookupProperty(depth0,"iconClass") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"iconClass","hash":{},"data":data,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":32}}}) : helper)))
+ "\"></span>\n <span class=\"hidden-visually\">"
+ alias4(((helper = (helper = lookupProperty(helpers,"addText") || (depth0 != null ? lookupProperty(depth0,"addText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addText","hash":{},"data":data,"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":42}}}) : helper)))
+ "\"></span>\n <span>"
+ alias4(((helper = (helper = lookupProperty(helpers,"addText") || (depth0 != null ? lookupProperty(depth0,"addText") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"addText","hash":{},"data":data,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":18}}}) : helper)))
+ "</span>\n</a>\n";
},"useData":true});
})();
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 30f00ed

Please sign in to comment.