mirror of
https://github.com/bitwarden/browser
synced 2026-01-09 03:53:53 +00:00
[PS-1017] corrected web vault accessibility when deleting an item with keyboard (#3893)
* PS-1017 Sending parent property to swal when delete popup appears above a modal * PS-1017 - Added more cases where the parent is necessary to swal react properly to keyboard inputs. Changed the way the ".modal-content" class is added to target to have it only on one place. * [PS-1017] Removed edit of target css selector from platform. Added full target on related component
This commit is contained in:
@@ -140,7 +140,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||
confirmText?: string,
|
||||
cancelText?: string,
|
||||
type?: string,
|
||||
bodyIsHtml = false
|
||||
bodyIsHtml = false,
|
||||
target?: string
|
||||
) {
|
||||
let iconClasses: string = null;
|
||||
if (type != null) {
|
||||
@@ -182,6 +183,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
|
||||
cancelButtonText: cancelText,
|
||||
showConfirmButton: true,
|
||||
confirmButtonText: confirmText == null ? this.i18nService.t("ok") : confirmText,
|
||||
target: target != null ? target : "body",
|
||||
});
|
||||
|
||||
if (bootstrapModal != null) {
|
||||
|
||||
Reference in New Issue
Block a user