inconsistent click-to-dismiss behaviour in javascript windows

Bug #741462 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Some javascript popup windows in Launchpad go away when you click outside of them (eg "request a review"); others do not (eg the popup diff). They ought to be consistent. My preference would be that they do not disappear when you click outside the window, because this is inconsistent with the behaviour of windows in Ubuntu generally, and because you can easily lose work or state by doing what is normally a harmless act (clicking the empty background of an OS window to raise it to the foreground.)

Revision history for this message
Curtis Hovey (sinzui) wrote :

The close-on-blur windows (popup) are the preferred design in lazr.js. The overlays that you must dismiss were added later. Since the content exceeds the size of the viewport, the must remain visible when the user uses the scroll bar. Both kinds of windows are used by Canonical sites, and both will remain until UX says otherwise.

I think the crux of the issue is that engineers are required to style the popup and overlay windows, and when given a choice, Lp engineers prefer to make their work exceptional. I recently reviewed a change that introduced a small overlay, it will never exceed the viewport, so the developer made it look like a popup, but did not behave like a popup.

There are two things we can do to address the issue. Firstly, make the designs of popups and overlays more distinct. Secondly, create widgets that enforce the designs; the engineer cannot easily make change the style.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.