<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[46243] trunk/src: Accessibility: Improve and modernize user interface controls.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/46243">46243</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/46243","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>afercia</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2019-09-23 15:26:23 +0000 (Mon, 23 Sep 2019)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Accessibility: Improve and modernize user interface controls. Third part: allow buttons and form controls to scale with text.
Props kjellr, abrightclearweb, audrasjb.
Fixes <a href="https://core.trac.wordpress.org/ticket/47477">#47477</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincssformscss">trunk/src/wp-admin/css/forms.css</a></li>
<li><a href="#trunksrcwpincludescssbuttonscss">trunk/src/wp-includes/css/buttons.css</a></li>
<li><a href="#trunksrcwpincludescssmediaviewscss">trunk/src/wp-includes/css/media-views.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincssformscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/css/forms.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/forms.css 2019-09-23 15:09:59 UTC (rev 46242)
+++ trunk/src/wp-admin/css/forms.css 2019-09-23 15:26:23 UTC (rev 46243)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -64,7 +64,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Vertically align the number selector with the input. */
</span><span class="cx" style="display: block; padding: 0 10px"> input[type="number"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 28px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 28px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 1;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -307,14 +307,39 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 2.0 - Forms
</span><span class="cx" style="display: block; padding: 0 10px"> ------------------------------------------------------------------------------*/
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* Select styles are based on the default button in buttons.css */
</ins><span class="cx" style="display: block; padding: 0 10px"> .wp-admin select {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: 2px;
- line-height: 2;
- height: 28px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #555;
+ border-color: #7e8993;
+ box-shadow: none;
+ border-radius: 3px;
+ padding: 2px 24px 2px 8px;
+ min-height: 28px;
</ins><span class="cx" style="display: block; padding: 0 10px"> vertical-align: middle;
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ -webkit-appearance: none;
+ /* The SVG is arrow-down-alt2 from Dashicons. */
+ background: #f7f7f7 url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 4px top 50%;
+ background-size: 16px 16px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.wp-admin select:hover {
+ background-color: #f3f5f6;
+ color: #007cba;
+}
+
+.wp-admin select:focus {
+ background-color: #f3f5f6;
+ border-color: #007cba;
+ color: #016087;
+ box-shadow: 0 0 0 1px #007cba;
+}
+
+.wp-admin select:active {
+ background-color: #eee;
+ border-color: #999;
+ box-shadow: none;
+}
+
</ins><span class="cx" style="display: block; padding: 0 10px"> .wp-admin .button-cancel {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 5px;
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 2;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -412,15 +437,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .tablenav .actions select {
</span><span class="cx" style="display: block; padding: 0 10px"> float: left;
</span><span class="cx" style="display: block; padding: 0 10px"> margin-right: 6px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- max-width: 200px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ max-width: 12.5rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .ie8 .tablenav .actions select {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- width: 155px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ width: 9.6875rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .ie8 .tablenav .actions select#cat {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- width: 200px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ width: 12.5rem;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> #timezone_string option {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1248,7 +1273,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> input[type="number"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 40px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 40px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> input.code {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1302,7 +1327,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> #wpbody select {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 36px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 36px;
</ins><span class="cx" style="display: block; padding: 0 10px"> font-size: 16px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1372,7 +1397,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> #wpbody .form-table td select {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 40px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 40px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> input[type="text"].small-text,
</span></span></pre></div>
<a id="trunksrcwpincludescssbuttonscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/css/buttons.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/css/buttons.css 2019-09-23 15:09:59 UTC (rev 46242)
+++ trunk/src/wp-includes/css/buttons.css 2019-09-23 15:26:23 UTC (rev 46243)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -47,9 +47,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> text-decoration: none;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 13px;
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 2;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 28px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 28px;
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: 0 10px 1px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding: 0 10px;
</ins><span class="cx" style="display: block; padding: 0 10px"> cursor: pointer;
</span><span class="cx" style="display: block; padding: 0 10px"> border-width: 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> border-style: solid;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button.button-large,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button-group.button-large .button {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 30px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 30px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 2.15384615;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 12px 2px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -78,7 +78,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button.button-small,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button-group.button-small .button {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 24px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 24px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 2;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 8px 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 11px;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -87,7 +87,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button.button-hero,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-core-ui .button-group.button-hero .button {
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 14px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 46px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 46px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 3.14285714;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 36px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -348,7 +348,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> #media-upload.wp-core-ui .button {
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 10px 1px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 24px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 24px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 22px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 13px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -369,7 +369,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 10px 1px;
</span><span class="cx" style="display: block; padding: 0 10px"> font-size: 13px;
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 2;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 28px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 28px;
</ins><span class="cx" style="display: block; padding: 0 10px"> margin: 0;
</span><span class="cx" style="display: block; padding: 0 10px"> vertical-align: inherit;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -382,7 +382,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* Reset responsive styles on Log in button on iframed login form */
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .interim-login .button.button-large {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- height: 30px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 30px;
</ins><span class="cx" style="display: block; padding: 0 10px"> line-height: 2;
</span><span class="cx" style="display: block; padding: 0 10px"> padding: 0 12px 2px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludescssmediaviewscss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/css/media-views.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/css/media-views.css 2019-09-23 15:09:59 UTC (rev 46242)
+++ trunk/src/wp-includes/css/media-views.css 2019-09-23 15:26:23 UTC (rev 46243)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -41,9 +41,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .media-frame select,
</span><span class="cx" style="display: block; padding: 0 10px"> .wp-admin .media-frame select {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: 2px;
- line-height: 2;
- height: 28px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ min-height: 28px;
</ins><span class="cx" style="display: block; padding: 0 10px"> vertical-align: middle;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>