From 1f66a067d958105e54c093aa828f3a3459befe6a Mon Sep 17 00:00:00 2001 From: Timothy Jacobs Date: Thu, 24 Aug 2023 20:14:04 +0000 Subject: [PATCH] General: Use regular core button styles for page header actions. Props emailjoey, melchoyce, afercia, michaelarestad, danieltj, helen. Fixes #41986. git-svn-id: https://develop.svn.wordpress.org/trunk@56458 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index da7243e949..53520b82cb 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -624,20 +624,26 @@ code { .wrap .add-new-h2:active, /* deprecated */ .wrap .page-title-action, .wrap .page-title-action:active { - margin-left: 4px; - padding: 4px 8px; + display: inline-block; position: relative; - top: -3px; - text-decoration: none; - border: 1px solid #2271b1; - border-radius: 2px; - text-shadow: none; - font-weight: 600; - font-size: 13px; - line-height: normal; /* IE8-IE11 need this for buttons */ - color: #2271b1; /* use the standard color used for buttons */ - background: #f6f7f7; + box-sizing: border-box; cursor: pointer; + white-space: nowrap; + text-decoration: none; + text-shadow: none; + top: -3px; + margin-left: 4px; + border: 1px solid #2271b1; + border-radius: 3px; + background: #f6f7f7; + font-size: 13px; + font-weight: 400; + line-height: 2.15384615; + color: #2271b1; /* use the standard color used for buttons */ + padding: 0 10px; + min-height: 30px; + -webkit-appearance: none; + } .wrap .wp-heading-inline + .page-title-action {