New issue
Advanced search Search tips

Issue 619607 link

Starred by 8 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

optimize extension icon badge text size

Project Member Reported by est...@chromium.org, Jun 13 2016

Issue description

see  bug 613576 , where we made the text size as tall as possible given the actual text the badge would display.

Now users complain that the text at this larger size (and with smaller MD icon width) is getting clipped/elided horizontally. On the one hand, the documentation makes no promise of a certain width (and recommends 4 or fewer characters); on the other hand, if an extension wants to display wider text, e.g. "12:45", we could just make the text small enough to fit it all (at the expense of readability). Hence, the size should be 

min(biggest size that will fit vertically, biggest size that will fit horizontally)

Devlin, wdyt?
 
min(max_vertical, max_horizontal) sgtm.  At some point, this really does come down to extension authors needing to make sure that the icon and badge text is legible with various content, but we can and should make a reasonable best attempt.  And I think that most users would rather have small text that includes everything rather than large text that omits characters.

Comment 2 by est...@chromium.org, Jun 13 2016

Of course the second we change this, we're going to find extensions that have been putting obscenely long text in the badge and relying on an ellipsis, so that suddenly it goes from semi-useful "123..." to unreadably small text.
Since we say "should contain four characters or less", I'd say any extension relying on that is probably not something we should optimize for.

That said, we could also add some UMA in SetBadgeTextFunction to see what type of distribution we get - that might be worthwhile before we make any decisions.

Comment 4 by evo...@gmail.com, Jul 30 2016

Wtf happened with old badges?
How I suppose to see a text in them now?
badges.png
1.6 KB View Download
Labels: Proj-MaterialDesign-NativeUI
See also bug 649054.
Project Member

Comment 6 by sheriffbot@chromium.org, Oct 12 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment