[Bug]: Status bar URL tooltip (#statuspanel-label) lacks contrast and does not inherit toolbar text color
Pre-Submission Checklist
- I have checked the existing/closed issues to ensure this issue has not already been reported.
- I am using the latest supported version of the browser.
- I have tried disabling all browser extensions/add-ons to rule out interference from these.
- I have tried clearing the browser cache and cookies.
- I have checked with a new profile and the issue still occurs.
- I have provided detailed step-by-step instructions on how to reproduce the issue.
- I have included relevant screenshots or console outputs.
- I have checked that this problem is not occurring in the latest version of Firefox.
- This issue is specific to this browser and does not occur in other browsers.
Bug Summary
When the Status Bar is enabled in Floorp, the URL preview tooltip (#statuspanel-label) that is relocated into #status-text retains Firefox's hardcoded text color (color: light-dark(#444, rgb(249, 249, 250)); from content-area.css) instead of inheriting the toolbar's text color (--toolbar-color).
As a result, the URL text becomes unreadable whenever custom, dynamic, or dark/light themes are applied to #nora-statusbar.
Reproduction Steps
- Enable the Status Bar in Floorp (
#nora-statusbar). - Apply any dark or high-contrast theme (or use a dynamic theme extension that sets dark toolbar colors like
#0f0f0for dark blue). - Hover over any hyperlink on a webpage to trigger the URL preview tooltip inside the status bar (
#status-text > #statuspanel-label). - Inspect the text color of the hovered URL preview.
Expected Behavior
The text inside #statuspanel-label should inherit or use the toolbar text color (var(--toolbar-color, inherit)), ensuring high contrast against whatever background color #nora-statusbar currently has.
Actual Behavior
The text inside #statuspanel-label remains dark gray (#444) or light gray (rgb(249, 249, 250)), because Floorp's stylesheet removes the background (background: none !important) but neglects to set color.
On dark or colored toolbars, the URL text is barely visible or completely unreadable.
Screenshots
Original behavior:
Workaround applied:
Original behavior:
Workaround applied:
Browser Version
Version [email protected]
Operating System
Windows 10
Additional Context
Root Cause Analysis:
- In
browser-features/chrome/common/statusbar/statusbar-manager.tsx, Floorp moves the native DOM node#statuspanel-labelfrom#statuspanelinto#nora-statusbar #status-text:statusTextNode.appendChild(statuspanelLabelNode); - In upstream Firefox (
chrome/browser/skin/classic/browser/tabbrowser/content-area.css),#statuspanel-labelis styled as a standalone floating bubble with its own explicit color:#statuspanel-label { color: light-dark(#444, rgb(249, 249, 250)); } - In Floorp's
statusbar.css(andstatusbar-utils.css), the background was cleared, but the text color property was omitted:#nora-statusbar #statuspanel-label { background: none !important; border: none !important; box-shadow: none !important; /* Missing: color: var(--toolbar-color, inherit) !important; */ }
Related Issues:
- 484: In #484, borders and shadows were cleared for
#statuspanel-label(border: none; box-shadow: none; background: none;), butcolorwas not specified, inadvertently leaving#statuspanel-labelbound to Firefox's hardcodedcolor: light-dark(#444, rgb(249, 249, 250))fromcontent-area.css. - 2285: In #2285, background variable issues on
#nora-statusbar(var(--panel-sidebar-background-color)) were reported when sidebars/themes change. Ensuring proper contrast against whatever theme background is present is essential.
Suggested Fix:
In browser-features/chrome/common/statusbar/statusbar.css (and statusbar-utils.css), add color: var(--toolbar-color, inherit) !important;:
#nora-statusbar #statuspanel-label {
background: none !important;
border: none !important;
box-shadow: none !important;
color: var(--toolbar-color, inherit) !important;
}Workaround for users via userChrome.css:
#nora-statusbar #statuspanel-label {
color: var(--toolbar-color, inherit) !important;
}Source: Floorp-Projects/Floorp