Skip to content

Commit

Permalink
Accessibility: Ensure "cancel" is clickable from move/restore d… (#5942)
Browse files Browse the repository at this point in the history
  • Loading branch information
BatJan authored and nul800sebastiaan committed Aug 14, 2019
1 parent 8bdd694 commit 5997e0c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/content/move.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@


<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="move()" ng-disabled="busy || !target">
<localize key="actions_move">Move</localize>
</button>
Expand Down
6 changes: 3 additions & 3 deletions src/Umbraco.Web.UI.Client/src/views/content/restore.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>

<div ng-hide="miniListView">
<umb-tree-search-box
<umb-tree-search-box
hide-search-callback="hideSearch"
search-callback="onSearchResults"
show-search="{{searchInfo.showSearch}}"
Expand Down Expand Up @@ -82,12 +82,12 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="loading || moving || success">
<a class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></a>
<button type="button" class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></button>
<button class="btn btn-primary" ng-click="restore()" ng-show="error == null"><localize key="actions_restore">Restore</localize></button>
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="loading || !moving || success">
<a class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></a>
<button type="button" class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></button>
<button class="btn btn-primary" ng-click="restore()" ng-show="error == null" ng-disabled="!target"><localize key="actions_move">Move</localize></button>
</div>
</div>
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/datatypes/move.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="move()" ng-disabled="busy || !target">
<localize key="actions_move">Move</localize>
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/documenttypes/copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="copy()" ng-disabled="busy || !target">
<localize key="actions_copy">Copy</localize>
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/documenttypes/move.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="move()" ng-disabled="busy || !target">
<localize key="actions_move">Move</localize>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/Umbraco.Web.UI.Client/src/views/media/move.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy"><localize key="general_cancel">Cancel</localize></a>
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy"><localize key="general_cancel">Cancel</localize></button>
<button class="btn btn-primary" ng-click="move()" ng-disabled="busy || !target"><localize key="actions_move">Move</localize></button>
</div>
</div>
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/media/restore.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="loading || moving || success">
<a class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></a>
<button type="button" class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></button>
<button class="btn btn-primary" ng-click="restore()" ng-show="error == null"><localize key="actions_restore">Restore</localize></button>
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="loading || !moving || success">
<a class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></a>
<button type="button" class="btn btn-link" ng-click="close()"><localize key="general_cancel">Cancel</localize></button>
<button class="btn btn-primary" ng-click="restore()" ng-show="error == null" ng-disabled="!target"><localize key="actions_move">Move</localize></button>
</div>
</div>
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/mediatypes/copy.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="copy()" ng-disabled="busy || !target">
<localize key="actions_copy">Copy</localize>
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/Umbraco.Web.UI.Client/src/views/mediatypes/move.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
</div>

<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="close()" ng-show="!busy">
<button type="button" class="btn btn-link" ng-click="close()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
</button>
<button class="btn btn-primary" ng-click="move()" ng-disabled="busy || !target">
<localize key="actions_move">Move</localize>
</button>
Expand Down

0 comments on commit 5997e0c

Please sign in to comment.