Skip to content

Commit

Permalink
Add umb-icon to umb-tree-item and umb-tree-search-box (#9064)
Browse files Browse the repository at this point in the history
* feat: add svg icons to umb-tree-item and umb-tree-search-box

* refactor: remove unnessesary aria-hidden from umb-tree-icon

* refactor: remove aria hidden from umb-tree-search-box icon
  • Loading branch information
MMasey authored Oct 12, 2020
1 parent 4dfc75c commit 7b0dc65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<span class="sr-only">Expand child items for {{node.name}}</span>
</button>

<i class="icon umb-tree-icon sprTree" ng-class="node.cssClass" title="{{::node.title}}" ng-click="select(node, $event)" ng-style="::node.style" tabindex="-1" aria-hidden="true"></i>
<umb-icon icon="{{node.icon}}" class="icon umb-tree-icon sprTree" ng-class="node.cssClass" title="{{::node.title}}" ng-click="select(node, $event)" ng-style="::node.style" tabindex="-1"></umb-icon>
<span class="umb-tree-item__annotation"></span>
<a class="umb-tree-item__label" ng-href="#/{{::node.routePath}}" ng-click="select(node, $event)" title="{{::node.title}}">{{node.name}}</a>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="form-search">
<i class="icon icon-search" ng-if="showSearch == 'false'" aria-hidden="true"></i>
<umb-icon icon="icon-search" class="icon icon-search" ng-if="showSearch == 'false'"></umb-icon>
<button type="button" class="btn-reset icon icon-arrow-left" ng-if="showSearch == 'true'" localize="title" title="@general_back" ng-click="hideSearch()"></button>
<input type="text"
ng-model="term"
class="umb-search-field search-query -full-width-input"
placeholder="{{searchPlaceholderText}}"
placeholder="{{searchPlaceholderText}}"
umb-auto-focus="{{autoFocus ? 'true' : 'false'}}">
<h4 ng-if="showSearch && searchFromName">
<small><localize key="general_search">Search</localize>:&nbsp;</small>
Expand Down

0 comments on commit 7b0dc65

Please sign in to comment.