Skip to content

Commit 99c8202

Browse files
[All hosts] (ribbon) Document scaling behavior (#5262)
* Clarify ribbon scaling behavior * Correct behavior * Clarify icon size and platforms * Apply suggestions from review Co-authored-by: Rick Kirkham <[email protected]> --------- Co-authored-by: Rick Kirkham <[email protected]>
1 parent f468ed7 commit 99c8202

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

docs/design/add-in-commands.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Basic concepts for add-in commands
33
description: Learn how to add custom ribbon buttons and menu items to Excel, Outlook, PowerPoint, and Word as part of an Office Add-in.
4-
ms.date: 06/27/2025
4+
ms.date: 07/15/2025
55
ms.topic: overview
66
ms.localizationpriority: high
77
---
@@ -39,15 +39,15 @@ There are two types of add-in commands, based on the kind of action that the com
3939
4040
## Location of add-in commands
4141

42-
When a user installs an add-in, the add-in's commands are found on the ribbon, in a built-in Office tab or a custom tab that is specified in the manifest. (You can also put add-in commands on a [custom contextual tab](#contextual-tabs) that your add-in code defines at runtime.) They appear in the UI as a button or an item in a drop-down menu.
42+
When a user installs an add-in, the add-in's commands are found on the ribbon, in a built-in Office tab or a custom tab that is specified in the manifest. (You can also put add-in commands on a [custom contextual tab](#contextual-tabs) that your add-in code defines at runtime.) They appear in the UI as a button or an item in a dropdown menu.
4343

4444
> [!NOTE]
4545
> On certain Outlook platforms, the commands are on an action bar rather than the ribbon.
4646
47-
For add-in commands that appear on the ribbon, if you're using the simplified ribbon layout, the add-in name is removed from the app bar. Only the add-in command button on the ribbon remains.
48-
4947
As the ribbon or action bar gets more crowded, add-in commands are displayed in the overflow menu. Commands for the same add-in are usually grouped together.
5048

49+
In Office on the web, if you're using the single-line or simplified ribbon layout, the add-in name isn't shown on the ribbon. Only the add-in's command icon is shown.
50+
5151
### Excel, PowerPoint, and Word
5252

5353
The following shows an example of add-in commands in a custom group on the **Data** tab of the Excel ribbon.
@@ -58,12 +58,29 @@ The following shows an example of add-in commands in a custom group on the **Dat
5858

5959
For Outlook, when you want an add-in command on a built-in ribbon tab, rather than creating your own, the command will appear on the default tab based on the platform and current Outlook mode. For guidance, see [Use add-ins in Outlook](https://support.microsoft.com/office/1ee261f9-49bf-4ba6-b3e2-2ba7bcab64c8).
6060

61-
### Drop-down menu
61+
### Dropdown menu
6262

63-
A drop-down menu add-in command defines a static list of items. The menu can be any mix of items that execute a function or that open a task pane. Submenus aren't supported.
63+
A dropdown menu add-in command defines a static list of items. The menu can be any mix of items that execute a function or that open a task pane. Submenus aren't supported.
6464

6565
![A button that drops down a menu on the Outlook ribbon.](../images/commands-menu-button-1.png)
6666

67+
### Grouped add-in commands on the ribbon
68+
69+
Multiple add-in commands can be grouped together on the ribbon. A group must contain at least one add-in command in the form of a button or a dropdown menu. In Office on Windows and on Mac, the label and icon of a button or dropdown menu are usually shown for add-in commands in a group. However, the icon size and label visibility may vary due to the following factors that constrain space.
70+
71+
- The number of add-in commands in the group.
72+
- The size of the Office client window.
73+
74+
If the client window is maximized and there are more than three controls in a group, the label of each control is shown, but the size of its icon may vary (some are shown as 16 x 16 pixels while others are shown as 32 x 32 pixels).
75+
76+
When there are two or more add-in commands in a group and space becomes limited, the following adjustments are made to how the add-in commands are displayed. These changes are applied to the groups of add-in commands from right to left across the ribbon in the following sequence.
77+
78+
1. Small icons (16 x 16 pixels) and labels are shown for each add-in command in a group.
79+
1. Only small icons are shown.
80+
1. The group is displayed as a dropdown menu instead of showing individual add-in commands on the ribbon. A scroll slider icon also appears on the ribbon, so that you can scroll through the ribbon.
81+
82+
In Office on the web, the icon size and label visibility of controls in groups don't change as the browser window is resized. The scroll slider icon is simply shown on the ribbon.
83+
6784
## Command capabilities
6885

6986
The following command capabilities are currently supported.

0 commit comments

Comments
 (0)