Skip to content

Notifications with 2+ buttons should use primary and secondary button styles #144207

@daviddossett

Description

@daviddossett

Currently notifications are configurable to display multiple primary buttons. Here's an example from our notification guidelines:

notification-warning

Generally using a bunch of primary actions is avoided as a basic UX principle—mostly given the added load it places on users to understand which option is the most likely one to take.

I can think of a few approaches off the top of my head:

  • Strictly enforce against using multiple primary actions in the API
  • Somehow lint for multiple contributed primary actions to gently discourage extension authors
  • Just add guidance to the notification API docs
  • Some combination of the above

This could extend to other areas as well (empty views, for example).

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityuxUser experience issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-notificationsNotification widget issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions