Closed Bug 1962931 Opened 6 months ago Closed 4 months ago

Light/dark toggle for the dark reader mode scrolls message to the top

Categories

(Thunderbird :: Message Reader UI, enhancement, P3)

Thunderbird 136
enhancement

Tracking

(relnote-thunderbird +, thunderbird_esr140 wontfix)

RESOLVED FIXED
142 Branch
Tracking Status
relnote-thunderbird --- +
thunderbird_esr140 --- wontfix

People

(Reporter: loren, Assigned: aleca)

Details

(Keywords: access, ux-efficiency)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Steps to reproduce:

I need to use the light/dark toggle on about every other message, to make the dimmest chars sort of visible. Every time I touch it, it grabs focus from the message, and scrolls the message to its top (where I often can't see the problem parts). I have to click back into the message body, and scroll to the problem text to see if it is better. And often go back to the previous toggle setting. (Why must modern eMails be so "fashionable"?

Actual results:

Extra clicks and scrolling.

Expected results:

Clicking the light/dark toggle should leave the message scroll where it is, and leave focus on the body text!

Perhaps this is already on your radar.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Type: enhancement → defect
Component: Untriaged → Message Reader UI
Ever confirmed: true
Flags: needinfo?(alessandro)
Summary: Could the quick light/dark toggle for the dark reader mode not move focus away from the message? → Light/dark toggle for the dark reader mode scrolls message to the top

Thanks for the report.
The toggle needs to reload the message in order to properly clear the styling.
I think I can move the focus back to the message body, and try to restore the correct scrolling height.

Assignee: nobody → alessandro
Type: defect → enhancement
Flags: needinfo?(alessandro)
Priority: -- → P3
Status: NEW → ASSIGNED
Attachment #9498549 - Attachment description: WIP: Bug 1962931 - Move focus back to message pane and restore scroll position after light/dark toggle → Bug 1962931 - Move focus back to message pane and restore scroll position after light/dark toggle. r=#thunderbird-reviewers

I fixed it, and also added tests for it.
When the patch lands, the message will maintain its scrolling position if the dark/light toggle is used, and the focus will move back to the message content so keyboard navigation can be used right away.

Target Milestone: --- → 142 Branch

Release Note Request (optional, but appreciated)
[Why is this notable]: Improvements to the usability of the dark message mode switcher.
[Suggested wording]: When using the dark message mode toggle in the message header, the focus will move back to the message body and any existing scrolling position will be restored, making it easier to maintain the reading flow uninterrupted even when needing to switch between light and dark mode.
[Links (documentation, blog post, etc)]: -

Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/cdfbefb613a1
Move focus back to message pane and restore scroll position after light/dark toggle. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED

Thanks for the relnote. I updated it a bit to shorten it up and put in past tense: "Toggling dark message mode did not restore focus and scroll position"

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: