This commit is contained in:
Andrew Nicols 2023-06-22 13:32:22 +08:00 committed by Sara Arjona
commit 17c6bfa257
3 changed files with 18 additions and 8 deletions

View File

@ -138,7 +138,6 @@ input[type="file"],
input[type="image"],
.sr-only-focusable,
a.dropdown-toggle,
.modal-dialog[tabindex="0"],
.moodle-dialogue-base .closebutton,
button.close,
.form-autocomplete-selection,
@ -157,7 +156,14 @@ button.close,
.modal-dialog[tabindex="0"] {
&.focus,
&:focus {
@include border-radius($modal-content-border-radius);
outline: 0;
.modal-content {
outline: 0;
box-shadow: $input-btn-focus-box-shadow;
// Modal dialogs border should be rounded too.
@include border-radius($modal-content-border-radius);
}
}
}

View File

@ -23007,8 +23007,6 @@ input[type=image]:focus,
.sr-only-focusable:focus,
a.dropdown-toggle.focus,
a.dropdown-toggle:focus,
.modal-dialog[tabindex="0"].focus,
.modal-dialog[tabindex="0"]:focus,
.moodle-dialogue-base .closebutton.focus,
.moodle-dialogue-base .closebutton:focus,
button.close.focus,
@ -23033,7 +23031,6 @@ input[type=file]:focus:hover,
input[type=image]:focus:hover,
.sr-only-focusable:focus:hover,
a.dropdown-toggle:focus:hover,
.modal-dialog[tabindex="0"]:focus:hover,
.moodle-dialogue-base .closebutton:focus:hover,
button.close:focus:hover,
.form-autocomplete-selection:focus:hover,
@ -23042,6 +23039,11 @@ button.close:focus:hover,
}
.modal-dialog[tabindex="0"].focus, .modal-dialog[tabindex="0"]:focus {
outline: 0;
}
.modal-dialog[tabindex="0"].focus .modal-content, .modal-dialog[tabindex="0"]:focus .modal-content {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.75);
border-radius: 0.6rem;
}

View File

@ -23007,8 +23007,6 @@ input[type=image]:focus,
.sr-only-focusable:focus,
a.dropdown-toggle.focus,
a.dropdown-toggle:focus,
.modal-dialog[tabindex="0"].focus,
.modal-dialog[tabindex="0"]:focus,
.moodle-dialogue-base .closebutton.focus,
.moodle-dialogue-base .closebutton:focus,
button.close.focus,
@ -23033,7 +23031,6 @@ input[type=file]:focus:hover,
input[type=image]:focus:hover,
.sr-only-focusable:focus:hover,
a.dropdown-toggle:focus:hover,
.modal-dialog[tabindex="0"]:focus:hover,
.moodle-dialogue-base .closebutton:focus:hover,
button.close:focus:hover,
.form-autocomplete-selection:focus:hover,
@ -23042,6 +23039,11 @@ button.close:focus:hover,
}
.modal-dialog[tabindex="0"].focus, .modal-dialog[tabindex="0"]:focus {
outline: 0;
}
.modal-dialog[tabindex="0"].focus .modal-content, .modal-dialog[tabindex="0"]:focus .modal-content {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.75);
border-radius: 0.3rem;
}