1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00
phorge-phorge/webroot/rsrc/css/application
epriestley c8afc741fa Add support for placeholders
Summary:
Support placeholder text for inputs. We currently don't use this because it requires JS and doesn't degrade (no JS means you have zero idea what the input is for if it isn't separately labeled) but there are some cases where intent is obvious from context (for example, the search input in the menu bar, which is fairly obvious on its own and will soon have a magnifying glass icon) and in such cases it's much prettier and saves a bunch of space over an explicit label. Add a behavior so we can add placeholders where they make sense.

This implementation is somewhat sanity-checked agianst the two jQuery placeholder implementations I was able to google:

https://github.com/danielstocks/jQuery-Placeholder/
https://github.com/mathiasbynens/jquery-placeholder

Since we don't currently have any uses cases, I haven't included support for making JS access to the `value` work, for password inputs, or for dynamically altering the placeholder.

Test Plan: Played around with the placeholder in the UI example in various browsers and couldn't break it.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1569

Differential Revision: https://secure.phabricator.com/D3103
2012-07-30 16:08:10 -07:00
..
base Add support for placeholders 2012-07-30 16:08:10 -07:00
chatlog Make chatlog a bit less awful 2012-06-02 14:00:08 -07:00
contentsource Use text, not icons, to indicate content sources 2011-09-01 10:07:16 -07:00
countdown Countdown tweaks 2011-06-13 18:53:43 -07:00
diff Separate the inline comment summary element into a separate view 2012-03-19 19:45:16 -07:00
differential Unhighlight lines modified in rebase 2012-06-29 17:21:23 -07:00
diffusion Use black bullet instead of gray background for disabled users 2012-05-23 14:16:57 -07:00
directory Improve homepage buttons for new users 2012-04-02 15:21:02 -07:00
feed Don't set feed width on chromeless page 2012-04-09 15:11:41 -07:00
files Streamline Files interfaces 2011-07-29 17:56:49 -07:00
flag Add "Flags" to allow users to collect the things they love 2012-03-27 16:22:40 -07:00
herald General Herald refactoring pass 2012-03-30 10:49:55 -07:00
maniphest Delete unused CSS 2012-04-05 10:54:06 -07:00
objectselector Increase the click target area for the object selector 2012-03-19 19:20:49 -07:00
owners Some owners read workflows. 2011-04-03 19:20:47 -07:00
phortune For discussion -- Stripe integration 2012-04-04 16:09:29 -07:00
phriction Phriction - kill tabs 2011-12-15 14:35:38 -08:00
profile Add a Join / Leave button to Projects 2012-01-25 11:51:20 -08:00
projects Improve display of long project names in task list UI 2012-04-02 11:16:05 -07:00
search Improve search result listing 2011-06-29 13:25:38 -07:00
slowvote Render slowvote respondents as a facepile instead of smushed-together names 2011-07-09 10:55:09 -07:00
uiexample AphrontPagerView and UIExamples. 2011-03-31 17:06:33 -07:00