-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ContextDialog: Accessibility improvements (#9045)
* Add role and aria attributes as well as a screen reader only description * Add translations to language files
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
src/Umbraco.Web.UI.Client/src/views/components/tree/umbcontextdialog/umb-context-dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<div id="dialog" class="umb-modalcolumn fill shadow" on-outside-click="outSideClick()"> | ||
<div id="dialog" | ||
class="umb-modalcolumn fill shadow" | ||
on-outside-click="outSideClick()" | ||
role="dialog" | ||
aria-labelledby="contextdialog-title" | ||
aria-describedby="contextdialog-description"> | ||
<div class="umb-modalcolumn-header"> | ||
<h1>{{dialogTitle}}</h1> | ||
<h1 id="contextdialog-title">{{dialogTitle}}</h1> | ||
<p id="contextdialog-description" class="sr-only"> | ||
<localize key="visuallyHiddenTexts_contextDialogDescription" tokens="[dialogTitle,currentNode.name]">Perform action {{dialogTitle}} on the {{currentNode.name}} node</localize> | ||
</p> | ||
</div> | ||
<div class="umb-modalcolumn-body" ng-include="view"></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters