From e994411a99074ba27639d3b2b867d7542b49b25b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 23 Sep 2019 16:20:24 +0000 Subject: [PATCH] Accessibility: Improve and modernize user interface controls for better contrast. Fifth part: Common form controls. Props anevins, melchoyce, audrasjb, kjellr. Fixes #47153. git-svn-id: https://develop.svn.wordpress.org/trunk@46247 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 10 +++++----- src/wp-admin/css/forms.css | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 0e85f69f60..fbf9f8d58e 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1368,7 +1368,7 @@ div.error { background: #fff; border: 1px solid #ccd0d4; border-left-width: 4px; - box-shadow: 0 1px 1px rgba(0,0,0,.04) + box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 5px 15px 2px; padding: 1px 12px; } @@ -1673,7 +1673,7 @@ form.upgrade .hint { background-color: #fff; border: 1px solid #ccd0d4; border-top: none; - box-shadow: 0 1px 0 rgba(0, 0, 0, 0.025); + box-shadow: 0 0 0 transparent; } #screen-options-link-wrap, @@ -1690,15 +1690,15 @@ form.upgrade .hint { #screen-meta-links .show-settings { border: 1px solid #ccd0d4; border-top: none; - border-bottom-color: #ccd0d4; height: auto; margin-bottom: 0; padding: 3px 6px 3px 16px; background: #fff; - border-radius: 0; + border-radius: 0 0 4px 4px; color: #72777c; line-height: 1.7; - box-shadow: none; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; } #screen-meta-links .show-settings:hover, diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index b33959d223..f51ad1066f 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -23,12 +23,14 @@ input[type="url"], input[type="week"], select, textarea { - border: 1px solid #ddd; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07); + padding: 6px 8px; + box-shadow: 0 0 0 transparent; + transition: box-shadow 0.1s linear; + border-radius: 4px; + border: 1px solid #7e8993; background-color: #fff; color: #32373c; outline: none; - transition: 0.05s border-color ease-in-out; } input[type="text"]:focus, @@ -70,7 +72,7 @@ input[type="number"] { input[type="checkbox"], input[type="radio"] { - border: 1px solid #b4b9be; + border: 1px solid #7e8993; background: #fff; color: #555; clear: none; @@ -184,7 +186,6 @@ input, select { font-size: 14px; padding: 3px 5px; - border-radius: 0; /* Reset mobile webkit's default element styling */ } textarea {