Closed Bug 1705449 Opened 4 years ago Closed 4 years ago

Make urlbar/searchbar placeholder text a bit more contrasted (And closer to spec)

Categories

(Firefox :: Address Bar, defect, P2)

defect
Points:
1

Tracking

()

VERIFIED FIXED
89 Branch
Tracking Status
firefox89 --- verified

People

(Reporter: bugzilla, Assigned: daisuke)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-address-bar] [priority:2a])

Attachments

(5 files)

When focusing the address bar in Dark mode, the placeholder text and "This time search with" text are the wrong color. They're off-white instead of grey. I can reproduce this on a fresh profile.

We did this on purpose in bug 1704073 because Figma uses grey only when unfocused, currentColor when focused, only in brighttext.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Attached image immagine.png

There is some inconcistency in Figma though.

This time, search with looks correct, but the placeholder in the input field sometimes is lighter, sometimes it's not.
I suspect it's based on the panel being open (so the background).

Let's ensure we do the right thing, reopening.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

Amy, could you please clarify the expected outcome? Did you mean to make the placeholder lighter when the urlbar is focused, like it is in Nightly, or is that a spec bug?

I think the "This time, search with:" change makes sense regardless to improve contrast.
But the placeholder being full color seems a bit confusing for the user.

Flags: needinfo?(amlee)
Depends on: 1704073

Hi,

The place holder copy should be secondary text colour (#BFBFC9) - Not full colour. Thanks.

Flags: needinfo?(amlee)

Sorry daisuke, we must revert the placeholder change from bug 1704073 and ensure the color is #BFBFC9. The header change is fine instead.

Flags: needinfo?(daisuke)

Okay, I will do it soon.

Assignee: nobody → daisuke
Status: REOPENED → ASSIGNED
Flags: needinfo?(daisuke)
Attached image revert.png

This is a screenshot for reverted.

Attached image explicit-BFBFC9.png

And, this is a screenshot that I set the color #BFBFC9 explicitly.
Comparing both, it seems that the reverted color is a bit darker.
Thus, for now, I will post a patch that sets the color explicitly. (is it ok?)

Summary: Urlbar placeholder text is the wrong colour in Dark mode → Make urlbar/searchbar placeholder text a bit more contrasted (And closer to spec)

See my comment in phab, I think the basic idea is to make the color a bit more contrasted in both Light and Dark, compared to what we have without Proton. Hardcoding colors here seems dangerous since there's already an opacity involved, thus I'd just tweak opacity to get much closer to the spec.

Attachment #9216281 - Attachment description: Bug 1705449: Set color to urlbar placeholder explicitly upon focusing in dark mode.r?mak! → Bug 1705449: Set placeholder opacity upon focusing to make the contrast stronger.r?mak!
Attachment #9216281 - Attachment description: Bug 1705449: Set placeholder opacity upon focusing to make the contrast stronger.r?mak! → Bug 1705449: Set placeholder opacity to make the contrast stronger.r?mak!
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/887e5ec02c7c Set placeholder opacity to make the contrast stronger.r=mak
Priority: -- → P2
Whiteboard: [proton-address-bar] → [proton-address-bar] [priority:2a]
Status: ASSIGNED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

Verified as fixed on Firefox 89 beta 5 under Win 10 64-bit, Mac OSX 11.2.3 and Ubuntu 18.04 64-bit.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: