Closed Bug 1725890 Opened 3 years ago Closed 1 year ago

"Clear Recent History" should use verbs for primary action instead of "OK" (isn't using "Clear Now" string that it's supposed to)

Categories

(Toolkit :: Data Sanitization, defect, P3)

Desktop
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- wontfix
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- fix-optional

People

(Reporter: yoasif, Unassigned)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Per macOS HIG:

Use verbs in push button titles. An action-specific title shows that the button is interactive and conveys what happens when clicked. For example, Save, Close, Print, Delete, and Change Password are action-specific titles. Because buttons initiate immediate actions, there’s no need for to include a time descriptor like Now.

I looked at https://hg.mozilla.org/mozilla-central/file/tip/browser/locales/en-US/browser/sanitize.ftl and it seems like "sanitize-button-ok" has the label "Clear Now", but it isn't being used by the new dialog in bug 1712750.

sanitizeDialog.js also seems to reference this string in

    let OKButton = this._dialog.getButton("accept");
    document.l10n.setAttributes(OKButton, "sanitize-button-ok");

so this seems like this is the bug, and the string in the code is by design.

See Also: → 1712750
Blocks: 1712750
See Also: 1712750

This is unrelated to the UI styling or proton design changes, as the exact same thing happened before those changes.

No longer blocks: 1712750
Component: Notifications and Alerts → Data Sanitization
Summary: "Clear Recent History" should use verbs for primary action instead of "OK" → "Clear Recent History" should use verbs for primary action instead of "OK" (isn't using "Clear Now" string that it's supposed to)
Severity: -- → S3

(In reply to :Gijs (he/him) from comment #2)

Regression range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9af589864188fc4061a020c45914f54fa9f67b0d&tochange=011ad9ff26088e341b0aebecd4424523b7759e88

Zibi, do you know why this fluent change broke localization here?

Flags: needinfo?(zbraniecki)
Flags: needinfo?(zibi)
Priority: -- → P3

Thanks for flagging, that sort of makes sense...

Status: NEW → RESOLVED
Closed: 1 year ago
Depends on: 1819664
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.