parent
e882ba9b28
commit
83baa29b2e
@ -1,11 +1,11 @@ |
||||
// TODO move to UI components
|
||||
angular.module('openproject.uiComponents') |
||||
|
||||
.directive('iconWrapper', ['I18n', function(I18n){ |
||||
.directive('iconWrapper', [function(){ |
||||
return { |
||||
restrict: 'EA', |
||||
replace: true, |
||||
scope: { iconName: '@', title: '=iconTitle' }, |
||||
scope: { iconName: '@', title: '@iconTitle' }, |
||||
templateUrl: '/templates/components/icon_wrapper.html' |
||||
}; |
||||
}]); |
||||
|
@ -1,3 +1,3 @@ |
||||
<span class="icon-context icon-button icon-{{iconName}}"> |
||||
<span class="hidden-for-sighted"></span> |
||||
<span class="icon-context icon-button icon-{{iconName}}" title="{{title}}"> |
||||
<span class="hidden-for-sighted">{{title}}</span> |
||||
</span> |
||||
|
Loading…
Reference in new issue