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);
|
API.deleteStyle(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const deleteButton = $('#message-box-buttons > button');
|
||||||
|
if (deleteButton) deleteButton.removeAttribute('data-focused-via-click');
|
||||||
},
|
},
|
||||||
|
|
||||||
external(event) {
|
external(event) {
|
||||||
|
|
|
@ -134,6 +134,15 @@
|
||||||
text-align: center;
|
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 {
|
.non-windows #message-box-buttons {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
|
|
|
@ -341,6 +341,13 @@ a.configure[target="_blank"] .svg-icon.config {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
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 {
|
.menu-items-wrapper {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-height: 80%;
|
max-height: 80%;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user