From 821df3364ec4f41f4148a28de786422b230211e6 Mon Sep 17 00:00:00 2001 From: Valerio Bozzolan Date: Thu, 30 Mar 2023 12:11:11 +0200 Subject: [PATCH] Hide the "hidden" fields on custom form previews Summary: Hide the "hidden" fields on custom form previews. Before this change, Phabricator's custom form preview doesn't actually hide the hidden fields, instead it shows them at 50% opacity. It looks cluttered and doesn't provide a very useful "preview" at all. This just hides some fields via CSS. Cherry picked from: https://phabricator.wikimedia.org/rPHABbba62cf5243538af9e37cc1211a01d247294f9f7 Upstream Task: https://phabricator.wikimedia.org/T209743 Test Plan: Tested in Wikimedia's fork. I believe it results in better UX. Reviewers: #blessed_committers, O1 Blessed Committers, Cigaryno, avivey, Matthew, valerio.bozzolan Reviewed By: #blessed_committers, O1 Blessed Committers, Cigaryno, avivey, valerio.bozzolan Subscribers: avivey, Cigaryno, speck, tobiaswiese, valerio.bozzolan, Matthew Maniphest Tasks: T15081 Differential Revision: https://we.phorge.it/D25037 --- resources/celerity/map.php | 6 +++--- webroot/rsrc/css/phui/phui-form-view.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 0c05232751..d11174a1d2 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -9,7 +9,7 @@ return array( 'names' => array( 'conpherence.pkg.css' => '0e3cf785', 'conpherence.pkg.js' => '020aebcf', - 'core.pkg.css' => 'f538846d', + 'core.pkg.css' => 'bb377509', 'core.pkg.js' => '66c49ca1', 'dark-console.pkg.js' => '187792c2', 'differential.pkg.css' => '609e63d4', @@ -154,7 +154,7 @@ return array( 'rsrc/css/phui/phui-document.css' => '52b748a5', 'rsrc/css/phui/phui-feed-story.css' => 'a0c05029', 'rsrc/css/phui/phui-fontkit.css' => '1ec937e5', - 'rsrc/css/phui/phui-form-view.css' => '01b796c0', + 'rsrc/css/phui/phui-form-view.css' => '7536aef9', 'rsrc/css/phui/phui-form.css' => 'd1adb52c', 'rsrc/css/phui/phui-formation-view.css' => 'd2dec8ed', 'rsrc/css/phui/phui-head-thing.css' => 'd7f293df', @@ -847,7 +847,7 @@ return array( 'phui-font-icon-base-css' => '303c9b87', 'phui-fontkit-css' => '1ec937e5', 'phui-form-css' => 'd1adb52c', - 'phui-form-view-css' => '01b796c0', + 'phui-form-view-css' => '7536aef9', 'phui-formation-view-css' => 'd2dec8ed', 'phui-head-thing-view-css' => 'd7f293df', 'phui-header-view-css' => '36c86a58', diff --git a/webroot/rsrc/css/phui/phui-form-view.css b/webroot/rsrc/css/phui/phui-form-view.css index accce86819..47f7d1bb2c 100644 --- a/webroot/rsrc/css/phui/phui-form-view.css +++ b/webroot/rsrc/css/phui/phui-form-view.css @@ -525,7 +525,7 @@ properly, and submit values. */ } .aphront-form-preview-hidden { - opacity: 0.5; + display: none; } .aphront-form-error .phui-icon-view {