Closed Bug 2028632 Opened 1 month ago Closed 20 days ago

Unbalanced spacings on new error pages with list of `whatCanYouDoItems`

Categories

(Firefox :: Security, defect, P3)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox149 --- unaffected
firefox150 --- fixed
firefox151 --- fixed

People

(Reporter: soeren.hentzschel, Assigned: jbrown)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

Attached image screenshot

https://httpbin.org/status/404 shows a 404 error page. In Firefox Nightly 151 (it's not the case in Firefox Beta 150), there is a list with two points and between these two points, there is a really large gap. However, there could definitely be a bit more space between the heading and the list.

Also note, that the second line of both bullet points starts too far to the right, compared to their first lines.

Attached image proposal

proposal for a more balanced look

Assignee: nobody → jbrown
Status: NEW → ASSIGNED

Hey Sören, thanks for reporting this!

It looks like that hanging indent accounts for the bullet point's rendered width with a constant 1.2em, which will look slightly different depending on the typeface and font-size.

I added a patch that returns list-style-position to the default value and moves padding-inline-start: 1.2em to the <ul> to take the guess work out of the indent.

Depends on: 2019611

Thanks for the patch. It addresses the second part of the report and looks much better! Could you also address the first point? I think, there is too much spacing between the two bullet points. Instead, there could be a bit more spacing between the caption and the list.

This does affect Firefox 150 but only on pages that have a list of items. The 404 page didn't have a list previously. You can see the issue on the timeout page (such as by trying to connect to http://10.0.0.0/).

Summary: unbalanced spacings on the new 404 error page → Unbalanced spacings on new error pages with list of `whatCanYouDoItems`

Thanks for the patch. It addresses the second part of the report and looks much better! Could you also address the first point? I think, there is too much spacing between the two bullet points. Instead, there could be a bit more spacing between the caption and the list.

Yeah, absolutely, I think you're right about the spacing. I updated the patch: there's more spacing between the heading and the list, and there's less space between the list items.

This is a screenshot with the latest changes applied. What do you think? Maybe still needs more space between the list and heading? Still too much space between list items?

This is a screenshot with the latest changes applied. What do you think? Maybe still needs more space between the list and heading? Still too much space between list items?

Thanks, it looks much better now! Maybe there could be a few more pixels between the heading and the list, or a few less pixels spacing between the list items. But I think it looks fine the way it is now.

Severity: -- → S4
Priority: -- → P3
Pushed by jbrown@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/088dd84629df https://hg.mozilla.org/integration/autoland/rev/285a65425eca Fix misaligned bullet points in net error what-can-you-do list - r=niklas,desktop-theme-reviewers,dao
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

The patch landed in nightly and beta is affected.
:jbrown, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(jbrown)

I think it would be good to request an uplift. It's low risk and noticeably improves the look of the list.

Flags: needinfo?(jbrown)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Bullet points in the "What can you do?" list on some network error pages are visually misaligned. This is visible to all users who encounter the list.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: CSS-only change to toolkit/themes/shared/aboutNetError.css. No logic and no string changes.
  • String changes made/needed?: No
  • Is Android affected?: no
Attachment #9570052 - Flags: approval-mozilla-beta?
Attachment #9570052 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: