Closed
Bug 1164594
Opened 10 years ago
Closed 9 years ago
New Tab shouldn't use text-transform: uppercase
Categories
(Firefox :: New Tab Page, defect)
Firefox
New Tab Page
Tracking
()
People
(Reporter: flod, Assigned: emtwo)
References
Details
(Whiteboard: .?)
Attachments
(6 files)
56.36 KB,
image/png
|
Details | |
39.28 KB,
image/png
|
Details | |
55.53 KB,
image/png
|
Details | |
5.47 KB,
patch
|
Details | Diff | Splinter Review | |
1.38 KB,
patch
|
Mardak
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
3.01 KB,
patch
|
Mardak
:
review+
|
Details | Diff | Splinter Review |
Last item in the new Gear button is almost cut on Italian build (see screenshot).
Also, it's not completely safe to use text-transform: uppercase (see bug 830002), and some locales prefer to avoid it.
Comment 1•10 years ago
|
||
How should we go about fixing the uppercase menu title for Aurora 40?
http://mxr.mozilla.org/mozilla-aurora/source/browser/locales/en-US/chrome/browser/newTab.dtd#9
Do we add a localization note in 40 about it being uppercase. But it's probably not end of the world if we took out transform uppercase in 40 and only added the note in 41.. ?
- <!ENTITY newtab.customize.cog.title "New Tab Controls">
+ <!ENTITY newtab.customize.cog.title "NEW TAB CONTROLS">
Updated•10 years ago
|
Component: Tiles → New Tab Page
Product: Content Services → Firefox
Whiteboard: .?
Reporter | ||
Comment 2•10 years ago
|
||
I wouldn't touch the string in Fx40 at this point, but we can add a comment explaining that the string will be transformed.
We can fix this on Fx41 (with a new string ID).
Comment 3•10 years ago
|
||
Adding it here since it's related, there's also a missing right padding when title is the longest string.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → msamuel
Comment 4•10 years ago
|
||
Bug 1158859 introduced the menu changes for Nightly 40, so we'll need to uplift sizing fixes and potentially the removal of text-transform.
status-firefox40:
--- → affected
status-firefox41:
--- → affected
Assignee | ||
Comment 5•10 years ago
|
||
Francesco, could you please test out the build here and let me know if it looks good to you?
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5c1fa2b071d5
This build adds right padding to the cog menu so no truncating occurs. It also adjusts the intro cog menu issues and static intro button widths mentioned in bug 1165394.
The build also includes removal of text-transform for uppercase (only for fx41)
Thanks!
Flags: needinfo?(francesco.lodolo)
Reporter | ||
Comment 6•10 years ago
|
||
It seems to work fine, but I'd probably a maximum width limit, after which text should start wrapping.
Flags: needinfo?(francesco.lodolo)
Reporter | ||
Comment 7•9 years ago
|
||
Any update? We currently look pretty broken on Developer Edition because of this issue.
Assignee | ||
Comment 8•9 years ago
|
||
I'll have the patches ready for review later today.
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8612649 -
Flags: review?(edilee)
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8612650 -
Flags: review?(edilee)
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8612651 -
Flags: review?(edilee)
Assignee | ||
Comment 12•9 years ago
|
||
Started up a try build here for testing: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f9563ccd9124
Comment 13•9 years ago
|
||
Comment on attachment 8612649 [details] [diff] [review]
Part 1: v1: Padding & text wrap fixes
>+++ b/browser/base/content/newtab/newTab.css
> #newtab-customize-title {
> color: #7A7A7A;
> font-size: 14px;
> background-color: #FFFFFF;
>- height: 52px;
>- line-height: 52px;
>- padding-left: 15px;
>+ line-height: 25px;
>+ padding: 15px;
> font-weight: 600;
> text-transform: uppercase;
> cursor: default;
> border-radius: 5px 5px 0px 0px;
>+ max-width: 300px;
This max width will prevent the title panel item from stretching as much as the other panel items. This means the border bottom will only be 300px wide.
> .newtab-customize-panel-item:not(:last-child),
> .newtab-search-panel-engine {
> border-bottom: 1px solid threedshadow;
Maybe we can draw the border at the top except for the first child (i.e., title line)?
> #newtab-intro-modal {
> font-family: "Helvetica";
>- width: 700px;
> height: 500px;
> position: fixed;
> left: 0;
> right: 0;
> top: 0;
> bottom: 0;
> margin: auto;
> background: linear-gradient(#FFFFFF, #F9F9F9);
> box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
> border-radius: 8px 8px 0px 0px;
>+ min-width: 715px;
>+ position: relative;
>+ max-width: 75%;
>+ display: inline-block;
>+ transform: translateY(50%);
I believe the vertically center trick you're looking for is
top: 50%;
transform: translateY(-50%);
> #newtab-intro-header {
> font-size: 28px;
> color: #737980;
> text-align: center;
> top: 50px;
> position: relative;
> border-bottom: 2px solid #E0DFE0;
> padding-bottom: 10px;
>- width: 600px;
This could be the longest line, so we'll want padding on sides so the text doesn't extend directly to the edge.
Attachment #8612649 -
Flags: review?(edilee)
Updated•9 years ago
|
Attachment #8612650 -
Flags: review?(edilee) → review+
Updated•9 years ago
|
Attachment #8612651 -
Flags: review?(edilee) → review+
Reporter | ||
Comment 15•9 years ago
|
||
(we should really land this)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Comment 18•9 years ago
|
||
We'll split off the text padding issue.
Updated•9 years ago
|
Iteration: --- → 41.2 - Jun 8
Points: --- → 2
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8612650 [details] [diff] [review]
Part 2a: v1 (fx-40): Add a comment for text transform uppercase
Approval Request Comment
[Feature/regressing bug #]: bug 1158859
[User impact if declined]: localization may be incorrect due to css uppercase transformation.
[Describe test coverage new/current, TreeHerder]: N/A - just adding a comment
[Risks and why]: no risk - just a comment
[String/UUID change made/needed]: N/A
Attachment #8612650 -
Flags: approval-mozilla-aurora?
Comment 20•9 years ago
|
||
Comment on attachment 8612650 [details] [diff] [review]
Part 2a: v1 (fx-40): Add a comment for text transform uppercase
Comment only which will simplify the life of our localizer. Taking it.
Attachment #8612650 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
Verified fixed on Firefox 40.0b2 (build ID:20150817163452) and Firefox 40.0.2 (build ID: 20150812163655) using the Fr/It locales.
Status: RESOLVED → VERIFIED
QA Contact: cornel.ionce
You need to log in
before you can comment on or make changes to this bug.
Description
•