Page MenuHomePhabricator

Provide guidelines on when to choose which basic interaction element in Codex
Closed, ResolvedPublic

Description

Background

In the past we've been seeing confusion in product teams which of the various basic interaction elements to choose from in which context. The general user focus guidance would be improved by a guideline for an overarching page interaction element hierarchy.

Description: An overarching guideline to recommend on interaction element hierarchy and choice between:

  • links
    • normal link
    • new/red link
    • neutral link (see below)
  • normal buttons
  • quiet buttons
  • primary buttons
    • buttons with icons and label or
    • icon-only buttons
  • secondary buttons, currently quiet progressive and quiet constructive buttons
  • groups of buttons, see T327426

Related question, when to use static icons? T301328: Document how to use icons in our projects

NOTE: We will also need to revisit the current content in the "Types" section of the docsite and evaluate if there is a better way to explain the different type of buttons.

History: We're currently missing strong guidelines in the Codex Style Guide on when to choose which of the more basic interaction elements.
Known use case(s): Different interaction elements prioritized in siloed product teams lead to confusing page composition when skins, extensions and external user-interface library
Considerations: This other task is being looped into this task.

User stories

As a designer, I'd like to know which of the DS interaction elements are best used when.

Guideline specification

guideline spec sheet

Open questions

  • Should a third type of link besides the new/red link be considered for the design system? A neutral link? Related task T311270
    • Still an open question, but not blocking this task
  • Should this guideline also live in DSG?
    • No, this will only live on the Codex site within its Style Guide section. We're archiving DSG - design.wikimedia.org/style-guide will soon redirect to Codex.

Acceptance criteria for done

Design

  • Gather an inventory/audit where there is ambiguity of links styled as buttons, or buttons styled as links
  • Review current usage of button and link components
  • Design the guidelines

Code

  • Implement the guideline in Codex

Event Timeline

Volker_E updated the task description. (Show Details)
CCiufo-WMF removed a subscriber: KieranMcCann.

From T347313, we should also revisit the current content in the "Types" section of the docsite and evaluate if there is a better way to explain the different type of buttons.

DTorsani-WMF changed the task status from Open to In Progress.Jan 2 2024, 6:00 PM

Change 992473 had a related patch set uploaded (by Dtorsani; author: Dtorsani):

[design/codex@main] docs: Add interaction guidelines in style guide

https://gerrit.wikimedia.org/r/992473

Change 992473 merged by jenkins-bot:

[design/codex@main] docs: Add interaction guidelines in style guide

https://gerrit.wikimedia.org/r/992473

Change 997931 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update Codex from v1.3.1 to v1.3.2

https://gerrit.wikimedia.org/r/997931

Test wiki created on Patch demo by ATomasevich (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/2e8b582c42/w

Change 997931 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v1.3.1 to v1.3.2

https://gerrit.wikimedia.org/r/997931