Merge lp://staging/~gary/juju-gui/placeholder into lp://staging/juju-gui/experimental
Proposed by
Gary Poster
Status: | Merged |
---|---|
Merged at revision: | 220 |
Proposed branch: | lp://staging/~gary/juju-gui/placeholder |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
66 lines (+9/-17) 3 files modified
app/index.html (+2/-1) app/views/charm-search.js (+0/-15) lib/views/stylesheet.less (+7/-1) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/placeholder |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Change charm search to use HTML5 placeholder
CSS does not allow you to specify a selector for a dynamic empty (or not empty) field value. The two approaches around it I found are JS and required/:valid. I chose required/:valid because it required no JS and seemed simpler. However, this required a CSS workaround: bootstrap wants to highlight focused invalid fields with a red glow. I changed this to have the usual blue glow in the case of this one field.
To post a comment you must log in.
Please take a look.