Skip to content

Conversation

@busybox11
Copy link
Contributor

Fixes #11870

Icons in the omnibox indicate pending actions (e.g., password save modal) and should remain visible until the user completes or rejects the action.

When a modal is dismissed, JS keeps showing=true on the icon, but Zen wasn't accounting for this and hid the icon with opacity: 0 while keeping it clickable.
This also blocked clicks to icons positioned underneath.

zen_fix_pw_omnibox_remux_h265.mp4

Icons in the omnibox indicate pending actions (e.g., password save modal)
and should remain visible until the user completes or rejects the action.
When a modal is dismissed, JS keeps showing=true on the icon, but Zen
wasn't accounting for this and hid the icon with opacity: 0 while keeping
it clickable. This also blocked clicks to icons positioned underneath.
@busybox11 busybox11 requested a review from mr-cheffy as a code owner January 26, 2026 02:11
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. Bug labels Jan 26, 2026
}

#notification-popup-box:not([open]) {
#notification-popup-box:not([open]):not(:has(> [showing="true"])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like the use of :has, is there no other way this could be done? Maybe we should apply these styles to the icons inside, instead of the entire notification-popup-box. So, for example, #notification-popup-box:not([open]) <element>:not([showing="true"]) {}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I don't either. It was the only approach that I could think of that would allow now writing rules for every single element.

I'm not familiar enough with Firefox's urlbar to know what icons are supposed to have this behavior other than the password one, I don't think I have encountered any other yet. Selecting only the password element sounds like it'd work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When on the login page, the extension icon in the address bar cannot be clicked

2 participants