Merge lp:~deryck/launchpad/description-editing-ubuntu-font into lp:launchpad

Proposed by Deryck Hodge
Status: Merged
Approved by: Deryck Hodge
Approved revision: no longer in the source branch.
Merged at revision: 11576
Proposed branch: lp:~deryck/launchpad/description-editing-ubuntu-font
Merge into: lp:launchpad
Diff against target: 60 lines (+14/-8)
3 files modified
lib/canonical/launchpad/icing/style-3-0.css.in (+14/-0)
lib/lp/bugs/templates/bugtask-index.pt (+0/-2)
lib/lp/code/templates/branchmergeproposal-index.pt (+0/-6)
To merge this branch: bzr merge lp:~deryck/launchpad/description-editing-ubuntu-font
Reviewer Review Type Date Requested Status
Curtis Hovey (community) ui Approve
Guilherme Salgado (community) ui* Approve
Graham Binns (community) code Approve
Review via email: mp+35321@code.launchpad.net

Commit message

Add a font-family declaration for inline description editing widgets which ensures consistency and uses the Ubuntu font if present.

Description of the change

This is a small branch to fix the CSS for the inline text area
editing widgets. These are the widgets used to edit descriptions for
bugs and merge proposal. MP commit messages are also edited via this
type of widget.

These widgets did not have the font-family declared in Launchpad and
so were using the font declared in lazr-js and with the current
update to use the Ubuntu font if available the description editing
widgets look even odder than before. This branch fixes that by
adding the rules to the stylesheet for LP. I also removed some
declarations that were shared across multiple templates but declared
in each template, so that there is one place to control the style of
these widgets.

I've declared this to use the same font family as for comments:

'UbuntuBeta Mono', 'Ubuntu Mono', monospace

This means that currently the plain monospace font will be used, but
once we have the Ubuntu version of this, the page will be all Ubuntu
font family. The page will be consistent for now and will use the
Ubuntu family of fonts once available.

This work does leave me with a couple questions:

 * Did I put the style declarations in the correct place?

         The base stlesheet is fairly generic, and these are fairly
         specific styles, but I didn't see where else to add them.

 * Does a UI reviewer agree that using monospace for descriptions is
   acceptable?

        There are already bugs about inconsistent fonts on pages, but
        IMHO this changes makes pages more consistently inconsistent.
        :-)

        All user-entered blocks of text would be monospace now, which
        I think is appropriate, but I welcome UI reviewer feedback on
        this.

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) :
review: Approve (code)
Revision history for this message
Guilherme Salgado (salgado) wrote :

I personally like having the same font family for all user-entered content, and specially for the description and comments, which can be considered part of a single conversation.

One question I have, though, is why the Ubuntu Beta family takes precedence over the Ubuntu one; shouldn't it be the other way around, so that the Ubuntu family is used when the user has both families installed? Or maybe I'm missing something?

Also, will we be able to remove the Ubuntu Beta family from that list once the final version is released or is there any reason we'd like to maintain it there?

review: Approve (ui*)
Revision history for this message
Deryck Hodge (deryck) wrote :

I followed the existing pattern from when the Ubuntu font family was added earlier. I assume it doesn't matter because they are the same font, and the name was simply changed. The font is provided by the same PPA currently, so I don't think you can have both installed. I assume when the font ships there will only be one font, not the beta one. We could indeed remove "beta" from the CSS when the final font ships.

Revision history for this message
Curtis Hovey (sinzui) wrote :

I too was confused by the decision to place the beta font before the final font, and wondered when will we remove it. Mark explained that we intend to continue development on the font family and that we want to see the beta font on all Canonical web sites to test. Most users will have the final font. Testers can choose to keep the beta font installed. We have no plans to remove the beta font.

review: Approve (ui)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/icing/style-3-0.css.in'
2--- lib/canonical/launchpad/icing/style-3-0.css.in 2010-08-27 19:20:53 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css.in 2010-09-20 12:37:43 +0000
4@@ -1804,6 +1804,20 @@
5 color: #b8b8ff;
6 }
7
8+/* Inline description editing.
9+ * Override the lazr-js style for all uses.
10+ */
11+div#edit-description,
12+div#edit-commit_message {
13+ font-family: 'UbuntuBeta Mono', 'Ubuntu Mono', monospace;
14+ font-size: 93%;
15+ margin: 1em 0;
16+ }
17+div#edit-description .yui-ieditor-input,
18+div#edit-commit_message .yui-ieditor-input {
19+ top: 0;
20+ }
21+
22
23 /* =========================
24 Universal presentation
25
26=== modified file 'lib/lp/bugs/templates/bugtask-index.pt'
27--- lib/lp/bugs/templates/bugtask-index.pt 2010-08-20 13:33:51 +0000
28+++ lib/lp/bugs/templates/bugtask-index.pt 2010-09-20 12:37:43 +0000
29@@ -20,8 +20,6 @@
30 });
31 </script>
32 <style type="text/css">
33- /* A page-specific fix for inline text are editing to line up box. */
34- #edit-description .yui-ieditor-input { top: 0; }
35 /* Align the 'add comment' link to the right of the comment box. */
36 #add-comment-form textarea { width: 100%; }
37 #add-comment-form { max-width: 60em; padding-bottom: 4em; }
38
39=== modified file 'lib/lp/code/templates/branchmergeproposal-index.pt'
40--- lib/lp/code/templates/branchmergeproposal-index.pt 2010-09-13 00:29:50 +0000
41+++ lib/lp/code/templates/branchmergeproposal-index.pt 2010-09-20 12:37:43 +0000
42@@ -18,9 +18,6 @@
43 #code-review-votes {
44 margin: 1em 0;
45 }
46- #description, #edit-description {
47- margin: 1em 0;
48- }
49 #add-comment-form {
50 max-width: 60em;
51 padding-bottom: 3em;
52@@ -50,9 +47,6 @@
53 padding-left: 20px;
54 padding-bottom: 10px;
55 }
56- /* A page-specific fix for inline text are editing to line up box. */
57- #edit-description .yui-ieditor-input { top: 0; }
58- #edit-commit_message .yui-ieditor-input { top: 0; }
59 </style>
60 </metal:block>
61