"Actions" drop down options do not give context to the user (#6301)
This commit is contained in:
@@ -15,7 +15,14 @@
|
||||
<umb-dropdown-item class="umb-action" ng-class="{'sep':action.separatorm, '-opens-dialog': action.opensDialog}" ng-repeat="action in actions">
|
||||
<button type="button" ng-click="executeMenuItem(action)">
|
||||
<i class="icon icon-{{action.cssclass}}" aria-hidden="true"></i>
|
||||
<span class="menu-label">{{action.name}}</span>
|
||||
<!-- Render the text that will be visually displayed -->
|
||||
<span class="menu-label" aria-hidden="true">{{action.name}}</span>
|
||||
<!-- Render the textDescription from the language files if it's attached to the action object-->
|
||||
<span class="sr-only" ng-if="action.textDescription">
|
||||
<localize key="visuallyHiddenTexts_{{action.alias}}Description" tokens="[currentNode.name]"></localize>
|
||||
</span>
|
||||
<!-- Otherwise render a combination of the nodename and the currentNode name-->
|
||||
<span class="sr-only" ng-if="!action.textDescription">{{action.name}} {{currentNode.name}}</span>
|
||||
</button>
|
||||
</umb-dropdown-item>
|
||||
</umb-dropdown>
|
||||
|
||||
Reference in New Issue
Block a user