Skip to content

Commit

Permalink
ContextDialog: Accessibility improvements (#9045)
Browse files Browse the repository at this point in the history
* Add role and aria attributes as well as a screen reader only description

* Add translations to language files
  • Loading branch information
BatJan authored Nov 22, 2020
1 parent 98610b5 commit 8549d1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
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>
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="hasTranslation">Has translation</key>
<key alias="noTranslation">Missing translation</key>
<key alias="dictionaryListCaption">Dictionary items</key>
<key alias="contextDialogDescription">Perform action %0% on the %1% node</key>
</area>
<area alias="references">
<key alias="tabName">References</key>
Expand Down
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2300,6 +2300,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="hasTranslation">Has translation</key>
<key alias="noTranslation">Missing translation</key>
<key alias="dictionaryListCaption">Dictionary items</key>
<key alias="contextDialogDescription">Perform action %0% on the %1% node</key>
</area>
<area alias="references">
<key alias="tabName">References</key>
Expand Down

0 comments on commit 8549d1a

Please sign in to comment.