Skip to content
Permalink
Browse files

Accessibility: Improve focus styles for legacy modal dialogs powered …

…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 aed8c497cb29ea878bc2843f928ad54237b311aa
Showing with 16 additions and 1 deletion.
  1. +3 −0 src/wp-includes/css/editor.css
  2. +13 −1 src/wp-includes/css/jquery-ui-dialog.css
@@ -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 {
@@ -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 {
@@ -290,6 +291,7 @@
width: 36px;
height: 36px;
text-align: center;
border-radius: 0;
}

.ui-dialog-titlebar-close:before {
@@ -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;
}

0 comments on commit aed8c49

Please sign in to comment.
You can’t perform that action at this time.