Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions assets/app/views/directives/delete-button.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="actions action-button">
<i class="fa fa-trash-o"
ng-click="$event.stopPropagation(); openDeleteModal();"
data-toggle="tooltip"
data-placement="left"
title="Delete"></i>
</div>
<div class="actions">
<!-- Avoid whitespace inside the link -->
<a href="" ng-click="$event.stopPropagation(); openDeleteModal()" role="button"
><i class="fa fa-trash-o action-button" aria-hidden="true"
></i><span class="sr-only">Delete {{resourceType | humanizeResourceType}} {{resourceName}}</span></a>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect this to just be a title attribute on the tag

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that works across screen readers? I can't find definitively one way or the other. The general advice I see is to avoid title.

</div>
4 changes: 2 additions & 2 deletions assets/test/integration/rest_api/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ describe('', function() {

it('should delete a project', function() {
h.goToPage('/project/' + project['name'] + '/settings');
element(by.css(".action-button .fa-trash-o")).click();
element(by.css(".action-button.fa-trash-o")).click();
element(by.cssContainingText(".modal-dialog .btn", "Delete")).click();
h.waitForPresence(".alert-success", "marked for deletion");
});
Expand Down Expand Up @@ -230,4 +230,4 @@ describe('', function() {
});
});
});
});
});
5 changes: 3 additions & 2 deletions pkg/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.