mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-26 20:21:04 -04:00
Style cancel link and make it keyboard navigable
So that it looks and behaves like a normal link.
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
this.addCancelButton = function(state) {
|
||||
let $cancel = $('<a></a>')
|
||||
.html('Cancel')
|
||||
.click((event) => {
|
||||
.attr('class', 'page-footer-js-cancel')
|
||||
.attr('tabindex', '0')
|
||||
.on('click keydown', (event) => {
|
||||
event.preventDefault();
|
||||
// clear existing data
|
||||
state.$el.find('input:radio').prop('checked', false);
|
||||
|
||||
Reference in New Issue
Block a user