-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support browserAction.setBadgeTextColor() #216
Comments
In addition to Some additional background can be found in the bugzilla issue report: I suggest to first discuss how the foreground color is determined by browsers, see if we can find alignment on this field as well. |
We should keep dark mode in mind here. We likely would need to let the caller set a color for each mode so it can look right if/when the user switches their UI between light and dark modes. |
I would like to know what is the default BadgeTextColor and BadgeBackgroundColor in different browsers (if developers don't set them). On Chrome, the default is White/Blue. And Edge's was the same as Chrome in the past. But recently Edge changed to White/Red. |
Here is a related chromium bug about badge's color contrast. The problem is that, in some cases, the badge text color chosen by the browser is unreadable, especially the badge is very small. Maybe some color experts can help solve it. |
Chrome is open to exposing |
There is further progress on this on https://crbug.com/1363445 |
Close this issue. Because Chrome has implemented |
Firefox has supported setBadgeTextColor() since 2018, but no other browsers currently support it. Standardizing a relatively minor function that would improve the customization of extension badges seems beneficial.
The text was updated successfully, but these errors were encountered: