Closed Bug 1147438 Opened 11 years ago Closed 11 years ago

Network error page titles should have underlines

Categories

(Firefox :: General, defect)

39 Branch
x86
All
defect
Not set
normal
Points:
3

Tracking

()

VERIFIED FIXED
Firefox 41
Tracking Status
firefox41 --- verified

People

(Reporter: rfeeley, Assigned: aaronraimist, Mentored)

References

Details

(Whiteboard: [Bugday-20150701])

Attachments

(2 files, 2 obsolete files)

Attached image underline.png —
Local error page titles should have an underline (horizontal rule).
This will involve getting some network error pages to show up and figuring out how to use the same CSS styles that we use on e.g. about:config in order to get a horizontal line between the title and the content. Because of the way the icon and text are in a single element, we'll probably need to adjust the markup so the title is in its own element and then set the .title-text class on the new element.
Mentor: gijskruitbosch+bugs
Points: --- → 3
Flags: qe-verify+
Flags: in-testsuite-
Flags: firefox-backlog+
Summary: Local error page titles should have underline → Network error page titles should have underlines
I would like to be assigned to this bug. I have attached a patch to find out if I am doing this in the correct way. Is this how you wanted it implemented or did you want to actually use the same CSS for both pages?
Attachment #8610193 - Flags: feedback?(gijskruitbosch+bugs)
Comment on attachment 8610193 [details] [diff] [review] bug1147438_networkerrorunderlines.diff Review of attachment 8610193 [details] [diff] [review]: ----------------------------------------------------------------- Nice! I have a suggestion below, which avoids the larger issue of trying to unify all the CSS here, for the moment, while not duplicating the font-size changes that we make for h1s. ::: browser/themes/shared/aboutNetError.css @@ +43,5 @@ > + > +#errorTitleText { > + border-bottom: 1px solid #C1C1C1; > + font-size: 1em; > + padding-bottom: 0.4em; Hm. Yeah, this is a nice small patch that fixes the issue. The problem is, as you suggested already, how to maintain this together with common.css . I think without overhauling too much, a slightly more maintainable option would be to not override any font sizes, but to update the background-size, and margin/padding-start for #errorTitle to be multiplied by 2.5 (so to 3em and -5/+5em, respectively). That renders the same as what your patch does, and, if I'm not mistaken, should mean that if someone changes the em-size of h1's in common.css, the font size of this header will also update. So it avoids the "code smell" of having the same size defined in multiple places. (the icon size won't update, but that isn't fixable while fixing this bug without modifying the markup, which will also require modifying the JS, which will probably take it out of sync with the toolkit versions of this page, which is all its own maintenance nightmare so let's not go there for the moment)
Attachment #8610193 - Flags: feedback?(gijskruitbosch+bugs) → feedback+
Assignee: nobody → aaronraimist
Status: NEW → ASSIGNED
Attachment #8610193 - Attachment is obsolete: true
Attachment #8611408 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8611408 [details] [diff] [review] bug1147438_networkerrorunderlines.diff Review of attachment 8611408 [details] [diff] [review]: ----------------------------------------------------------------- Nice! ::: browser/themes/shared/aboutNetError.css @@ +33,5 @@ > max-width: 512px; > } > > +#errorTitle { > + background: url("aboutNetError_info.svg") left 0 no-repeat; Nit: trailing space.
Attachment #8611408 - Flags: review?(gijskruitbosch+bugs) → review+
This updated patch fixes the extra space, is this ready to be checked in?
Attachment #8611408 - Attachment is obsolete: true
Attachment #8611517 - Flags: review+
(In reply to Aaron Raimist [:aaronraimist] from comment #6) > Created attachment 8611517 [details] [diff] [review] > bug1147438_networkerrorunderlines.diff > > This updated patch fixes the extra space, is this ready to be checked in? Very much so. For the checkin-needed folks: this is a CSS-only in-content-only change, it doesn't need a trypush.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
I have reproduced this bug in Nightly 39.0a1(Build ID: 20150325030206)(User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0) Bug is fixed now on latest Developer Edition 41.0a2 (Build ID: 20150629134017) (User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0) & latest nightly 42.0a1 (Build ID: 20150630030204) (User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0)
I have reproduced the bug in nightly 39.0a1 (2015-03-25)(Build ID: 20150325115608) with the instruction from comment 0 and linux 32 bit Mozilla/5.0 (X11; Linux i686; rv:39.0) Gecko/20100101 Firefox/39.0 Bug is fixed now on latest Developer Edition 41.0a2 (2015-06-30)(Build ID: 20150630004006) Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 & latest nightly 42.0a1 (2015-06-30)(Build ID: 20150630030204) Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [Bugday-20150701]
Whiteboard: [Bugday-20150701]
Depends on: 1181963
Depends on: 1264537
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: