Page MenuHomePhabricator

Button: Evaluate the need for smaller/inline button styles
Open, Needs TriagePublic

Description

Background

In T338021: [EPIC] Determine guidelines/recommendation for sizing of form components we are exploring the possibility of implementing a large size for buttons and for items. We also need to explore the possibility of adding a small size (24px?). But in this case, the small size would be applied just in buttons.

Known use cases

Captura de pantalla 2023-11-28 a las 18.24.04.png (802×962 px, 53 KB)
"Hide" button in the Table of contents T351660: Align buttons in pinnable menus with Codex styles
image.png (1×1 px, 329 KB)
Inline actions in groups on the History, Watchlist, Recent Changes etc pages.
image.png (82×836 px, 19 KB)
IP reveal button for the Temp accounts work.
image.png (106×582 px, 24 KB)
The reply button on Talk pages (Discussion Tools).
Screen Shot 2022-10-14 at 8.14.55 AM.png (338×934 px, 84 KB)
Edit on section headings.
image.png (82×836 px, 19 KB)
Proposed "show IP" quiet button for IP Masking (will have same custom CSS to adjust line-height).

Design spec

Once a component spec sheet has been created in Figma, remove the note stating that the spec is missing and link to the spec below.

Component spec sheet

Open questions

Add here the questions to be answered in order to design and implement the component

Acceptance criteria (or Done)

Design

  • Design the Figma spec sheet and add it in this task
  • Update the component in the Figma library. This step will be done by a DST member.
  • Update guidelines on Codex for "Using links and buttons" in Style Guide

Code

  • Implement the component in Codex

Event Timeline

hi @bmartinezcalvo - There are many other use cases as well documented on T327426#8549928 - can these please be added to the known use cases in the description?

Inline actions in groups on the History, Watchlist, Recent Changes etc pages:

image.png (1×1 px, 329 KB)

IP reveal button for the Temp accounts work:

image.png (82×836 px, 19 KB)

The reply button on Talk pages (Discussion Tools):

image.png (106×582 px, 24 KB)

hi @bmartinezcalvo - There are many other use cases as well documented on T327426#8549928 - can these please be added to the known use cases in the description?

Inline actions in groups on the History, Watchlist, Recent Changes etc pages:

image.png (1×1 px, 329 KB)

IP reveal button for the Temp accounts work:

image.png (82×836 px, 19 KB)

The reply button on Talk pages (Discussion Tools):

image.png (106×582 px, 24 KB)

@RHo thank you! Added all these use cases in the task description.

Based on the Vector22 context, I think neutral-quiet-progressive buttons style in Codex with 24px height and 4px left/right margins will work for our small button.

See T351660 for rationale and explorations.

Should part of the work in this task include determining the need for a different button style for smaller buttons for the use-cases listed, not only creating a smaller version of existing styles?.

This is something that @DTorsani-WMF could potentially work on to taking over from the explorations started earlier for the inline button group use case. See task description in T327426 for more info.

CCiufo-WMF renamed this task from Button: Small size to Button: Evaluate the need for smaller/inline button styles.Dec 19 2023, 4:51 PM