Closed Bug 1696286 Opened 4 years ago Closed 4 years ago

Make it possible for PopupNotification's to be considered "unopinionated"

Categories

(Firefox :: Messaging System, task)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-door-hangers])

Attachments

(1 file)

Our PopupNotifications are, by default, opinionated by visually highlighting the main action. For Proton, we're (at least visually) moving away from putting our thumb on the scale on which permission we consider the "primary", and we want them to look equivalent to the other buttons.

This is only the case for some types of PopupNotifications, so I'm going to add an optional argument opinionated: false to the structure that a PopupNotification can be constructed with. This property will default to true if it's not passed.

The CSS will then be modified to only highlight the main action for panels that are opinionated.

Being 'visually unopinionated' means not showing distinct styling for the main action.

Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6f8b367e18e3 Make it possible for PopupNotifications to be visually unopinionated. r=Gijs
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
Blocks: 1696418
Status: RESOLVED → REOPENED
Flags: needinfo?(mconley)
Resolution: FIXED → ---
Target Milestone: 88 Branch → ---

It turns out that there was already a way to do this built-in to PopupNotifications and popupnotification.js, and I just never noticed it - one can pass disableHighlight on the mainAction, or set buttonhighlight="false" on the popupnotification to disable the default action highlighting. This was originally added in bug 1377006.

Depends on: 1377006
Flags: needinfo?(mconley)
Attachment #9206771 - Attachment description: Bug 1696286 - Make it possible for PopupNotifications to be visually unopinionated. r?Gijs! → Bug 1696286 - Disable main action highlight in PermissionUI panels when Proton is enabled. r?Gijs
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/419bc25a9148 Disable main action highlight in PermissionUI panels when Proton is enabled. r=Gijs
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: