Skip to content

Commit

Permalink
Accessibility: Improve focus styles for legacy modal dialogs powered …
Browse files Browse the repository at this point in the history
…by jQuery UI.

Fixes #47944.


git-svn-id: https://develop.svn.wordpress.org/trunk@45931 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
afercia committed Sep 2, 2019
1 parent e12f379 commit aed8c49
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/wp-includes/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,9 @@ i.mce-i-wp_code:before {
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, 0.8);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
}

#wp-link-wrap #link-selector {
Expand Down
14 changes: 13 additions & 1 deletion src/wp-includes/css/jquery-ui-dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
z-index: 100102;
background-color: #fff;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
overflow: hidden;
}

.ui-dialog-titlebar {
Expand All @@ -290,6 +291,7 @@
width: 36px;
height: 36px;
text-align: center;
border-radius: 0;
}

.ui-dialog-titlebar-close:before {
Expand All @@ -304,10 +306,20 @@
content: "\f158";
}

.ui-button.ui-dialog-titlebar-close:hover {
.ui-button.ui-dialog-titlebar-close:hover,
.ui-button.ui-dialog-titlebar-close:focus {
color: #00a0d2;
}

.ui-button.ui-dialog-titlebar-close:focus {
box-shadow:
0 0 0 1px #5b9dd9,
0 0 2px 1px rgba(30, 140, 190, 0.8);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
}

.ui-dialog-titlebar-close .ui-button-text {
display: none;
}
Expand Down

0 comments on commit aed8c49

Please sign in to comment.