Improve delete confirmation autofocus visual indication (#956)
This commit is contained in:
parent
a1b0eb7df1
commit
60d314b165
|
@ -454,6 +454,8 @@ Object.assign(handleEvent, {
|
|||
API.deleteStyle(id);
|
||||
}
|
||||
});
|
||||
const deleteButton = $('#message-box-buttons > button');
|
||||
if (deleteButton) deleteButton.removeAttribute('data-focused-via-click');
|
||||
},
|
||||
|
||||
external(event) {
|
||||
|
|
|
@ -134,6 +134,15 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.danger #message-box-buttons > button:not([data-focused-via-click]):first-child:focus {
|
||||
outline: red auto 1px;
|
||||
}
|
||||
|
||||
/* FF ignores color with 'auto' */
|
||||
.firefox .danger #message-box-buttons > button:not([data-focused-via-click]):first-child:focus {
|
||||
outline: red solid 1px;
|
||||
}
|
||||
|
||||
.non-windows #message-box-buttons {
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
|
|
|
@ -341,6 +341,13 @@ a.configure[target="_blank"] .svg-icon.config {
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#confirm button[data-cmd="ok"]:not([data-focused-via-click]):focus {
|
||||
outline: red auto 1px;
|
||||
}
|
||||
/* FF ignores color with 'auto' */
|
||||
.firefox #confirm button[data-cmd="ok"]:not([data-focused-via-click]):focus {
|
||||
outline: red solid 1px;
|
||||
}
|
||||
.menu-items-wrapper {
|
||||
width: 80%;
|
||||
max-height: 80%;
|
||||
|
|
Loading…
Reference in New Issue
Block a user