Skip to content

Commit

Permalink
Merge branch 'MDL-73026-master' of https://github.com/junpataleta/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Nov 11, 2021
2 parents fb7caf7 + 2fcf41d commit a1d7bfc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions theme/boost/scss/moodle/modal.scss
Expand Up @@ -15,4 +15,17 @@
}
}
}

// Override Bootstrap .close for better accessibility.
.close {
// Adjust the margins so the focus outline does not look clipped.
margin: -0.8rem -0.8rem -0.8rem auto;

// Inherit the opacity when focus is received for better focus outline contrast.
&:not(:disabled):not(.disabled) {
@include hover-focus() {
opacity: inherit;
}
}
}
}
5 changes: 5 additions & 0 deletions theme/boost/style/moodle.css
Expand Up @@ -19953,6 +19953,11 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
left: 50%;
transform: translate(-50%, -50%); }

.modal .close {
margin: -0.8rem -0.8rem -0.8rem auto; }
.modal .close:not(:disabled):not(.disabled):hover, .modal .close:not(:disabled):not(.disabled):focus {
opacity: inherit; }

.layout.fullscreen {
height: 100vh;
position: fixed;
Expand Down
5 changes: 5 additions & 0 deletions theme/classic/style/moodle.css
Expand Up @@ -19899,6 +19899,11 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
left: 50%;
transform: translate(-50%, -50%); }

.modal .close {
margin: -0.8rem -0.8rem -0.8rem auto; }
.modal .close:not(:disabled):not(.disabled):hover, .modal .close:not(:disabled):not(.disabled):focus {
opacity: inherit; }

.layout.fullscreen {
height: 100vh;
position: fixed;
Expand Down

0 comments on commit a1d7bfc

Please sign in to comment.