Feature/media provide screen reader context remove files (#6919)

This commit is contained in:
Poornima Nayar
2020-01-03 19:23:47 +00:00
committed by Kenn Jacobsen
parent f3b542f1c2
commit 9d30b1acc0
4 changed files with 11 additions and 4 deletions

View File

@@ -44,9 +44,10 @@
</div>
</div>
</div>
<div>
<a href class="btn btn-link btn-crop-delete" ng-click="vm.clear()"><i class="icon-delete red"></i> <localize key="content_uploadClear">Remove file</localize></a>
<button class="btn btn-link btn-crop-delete" aria-hidden="true" ng-click="vm.clear()"><i class="icon-delete red"></i> <localize key="content_uploadClear">Remove file</localize></button>
<button class="sr-only" ng-if="file.isImage" ng-click="vm.clear()"><localize key="content_uploadClearImageContext">Click here to remove the image from the media item</localize></button>
<button class="sr-only" ng-if="!file.isImage" ng-click="vm.clear()"><localize key="content_uploadClearFileContext">Click here to remove the file from the media item</localize></button>
</div>
</div>

View File

@@ -41,7 +41,8 @@
on-value-changed="focalPointChanged(left, top)"
on-image-loaded="imageLoaded(isCroppable, hasDimensions)">
</umb-image-gravity>
<a href class="btn btn-link btn-crop-delete" ng-click="clear()"><i class="icon-delete red"></i> <localize key="content_uploadClear">Remove file</localize></a>
<button class="btn btn-link btn-crop-delete" aria-hidden="true" ng-click="clear()"><i class="icon-delete red"></i> <localize key="content_uploadClear">Remove file</localize></button>
<button class="sr-only" ng-click="vm.clear()"><localize key="content_uploadClearImageContext">Click here to remove the image from the media item</localize></button>
</div>

View File

@@ -264,7 +264,9 @@
<key alias="unpublished">Unpublished</key>
<key alias="updateDate">Last edited</key>
<key alias="updateDateDesc" version="7.0">Date/time this document was edited</key>
<key alias="uploadClear">Remove file(s)</key>
<key alias="uploadClear">Remove file(s)</key>
<key alias="uploadClearImageContext">Click here to remove the image from the media item</key>
<key alias="uploadClearFileContext">Click here to remove the file from the media item</key>
<key alias="urls">Link to document</key>
<key alias="memberof">Member of group(s)</key>
<key alias="notmemberof">Not a member of group(s)</key>
@@ -2346,3 +2348,4 @@ To manage your website, simply open the Umbraco back office and start adding con
</key>
</area>
</language>

View File

@@ -269,6 +269,8 @@
<key alias="updateDate">Last edited</key>
<key alias="updateDateDesc" version="7.0">Date/time this document was edited</key>
<key alias="uploadClear">Remove file(s)</key>
<key alias="uploadClearImageContext">Click here to remove the image from the media item</key>
<key alias="uploadClearFileContext">Click here to remove the file from the media item</key>
<key alias="urls">Link to document</key>
<key alias="memberof">Member of group(s)</key>
<key alias="notmemberof">Not a member of group(s)</key>