Background
At the moment, Codex Button includes 2 sizes:
- Medium (32px)
- Large (44px)
We need to explore and implement a new small size (20px/24px?) to cover the following use cases:
Known use cases
| "Hide" button in the Table of contents T351660: Align buttons in pinnable menus with Codex styles | |
| Inline actions in groups on the History, Watchlist, Recent Changes etc pages. | |
| IP reveal button for the Temp accounts work. | |
| The reply button on Talk pages (Discussion Tools). | |
| Edit on section headings. | |
| Proposed "show IP" quiet button for IP Masking (will have same custom CSS to adjust line-height). | |
| "Details" button in Wikifunctions. | |
Design spec
Specifications:
- Button size: @size-150 (24px)
- Icon size: @icon-small
- Text:
- @font-size-medium
- @font weight-bold by default (with option of Normal)
- Padding:
- Between StartIcon and Label: @spacing-25 (4px)
- Left and Right sides: @spacing-35 (6px)
Recommendations for Small Button
- Use Small Button when you need to put a button alongside or between texts or when space is limited.
- Use non-capital letter to make it fit better with surrounding texts.
- Use Bold weight by default. Normal weight is permissible in some specific cases to blend more with surrounding texts.
- Avoid using the Small Button on touchable screens and use Medium Button size (32px) if possible.
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
- Add the Small Button size 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







