Closed Bug 1992233 Opened 3 months ago Closed 8 days ago

Imlement about:translations Clear Button

Categories

(Firefox :: Translations, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Description

Our new about:translations designs (internal only) include a clear button at the top-right of the source text area, which will clear the source text when clicked.

We need to implement this button.

Priority: -- → P2
Blocks: 2004463
Assignee: nobody → enordin

This commit adds the actions column and clear button to the source section
of the about:translations page. This introduces the new UI element sonly,
ensuring that the pre-existing lofic is consistent, especially resizing.

At this point, the button is always shown and has no functionality.
Subsequent commits will add the show/hide/click logic as well as tests.

This commit introduces the logic for when the source-section clear button
should be visible or hidden on the about:translations page.

At this point, the button has no functionality when clicked.
This will be added in the next commit.

This commit implements the logic for clicking the source-section clear
button on the about:translations page. Invoking the clear button will
clear the source text, resulting in the button now being hidden, and
the source-text section having focus.

Attachment #9534019 - Attachment description: WIP: Bug 1992233 - Part 1/3: Add Source Section Clear Button r=#translations-reviewers! → Bug 1992233 - Part 1/3: Add Source Section Clear Button r=#translations-reviewers!
Attachment #9534020 - Attachment description: WIP: Bug 1992233 - Part 2/3: Implement Clear Butotn Visibility r=#translations-reviewers! → Bug 1992233 - Part 2/3: Implement Clear Butotn Visibility r=#translations-reviewers!
Attachment #9534021 - Attachment description: WIP: Bug 1992233 - Part 3/3: Implement Clear Button Functionality r=#translations-reviewers! → Bug 1992233 - Part 3/3: Implement Clear Button Functionality r=#translations-reviewers!
Pushed by enordin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/75259352201f https://hg.mozilla.org/integration/autoland/rev/49ff5f55f586 Part 1/3: Add Source Section Clear Button r=translations-reviewers,fluent-reviewers,bolsson,gregtatum https://github.com/mozilla-firefox/firefox/commit/bd005d4ae09f https://hg.mozilla.org/integration/autoland/rev/d9f440f83337 Part 2/3: Implement Clear Butotn Visibility r=translations-reviewers,gregtatum https://github.com/mozilla-firefox/firefox/commit/dabbf9a4cd16 https://hg.mozilla.org/integration/autoland/rev/87d4cc80dacf Part 3/3: Implement Clear Button Functionality r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: