-
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.
umb-confirmation directive: move trashcan into directive and address …
…accessibility issues (#8198)
- Loading branch information
Showing
8 changed files
with
66 additions
and
52 deletions.
There are no files selected for viewing
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
5 changes: 5 additions & 0 deletions
5
src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less
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
25 changes: 16 additions & 9 deletions
25
src/Umbraco.Web.UI.Client/src/views/components/umb-confirm-action.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,22 +1,29 @@ | ||
<div class="umb_confirm-action__overlay" | ||
ng-class="{ | ||
'-top': direction === 'top', | ||
'-right': direction === 'right', | ||
'-bottom': direction === 'bottom', | ||
'-left': direction === 'left'}" | ||
on-outside-click="clickCancel()"> | ||
<div class="umb_confirm-action"> | ||
<button ng-if="onDelete" type="button" class="btn-reset" ng-click="clickButton($event)"> | ||
<i class="icon-trash" aria-hidden="true"></i> | ||
<span class="sr-only">Delete</span> | ||
</button> | ||
|
||
<button class="umb_confirm-action__overlay-action -confirm btn-reset" ng-click="clickConfirm()" localize="title" title="@buttons_confirmActionConfirm" type="button"> | ||
<div class="umb_confirm-action__overlay" | ||
ng-class="{ | ||
'-top': direction === 'top', | ||
'-right': direction === 'right', | ||
'-bottom': direction === 'bottom', | ||
'-left': direction === 'left'}" | ||
on-outside-click="clickCancel()" ng-if="show"> | ||
|
||
<button type="button" class="umb_confirm-action__overlay-action -confirm btn-reset" ng-click="clickConfirm()" localize="title" title="@buttons_confirmActionConfirm"> | ||
<i class="icon-check" aria-hidden="true"></i> | ||
<span class="sr-only"> | ||
<localize key="buttons_confirmActionConfirm">Confirm</localize> | ||
</span> | ||
</button> | ||
|
||
<button class="umb_confirm-action__overlay-action -cancel btn-reset" ng-click="clickCancel()" localize="title" title="@buttons_confirmActionCancel" type="button"> | ||
<button type="button" class="umb_confirm-action__overlay-action -cancel btn-reset" ng-click="clickCancel()" localize="title" title="@buttons_confirmActionCancel"> | ||
<i class="icon-delete" aria-hidden="true"></i> | ||
<span class="sr-only"> | ||
<localize key="buttons_confirmActionCancel">Cancel</localize> | ||
</span> | ||
</button> | ||
</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
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