Mirakl Design
Mirakl Design
  • Getting started
    • Welcome to Roma
      • Design principles
  • Design
    • Components
      • Actions
        • Action menu
        • Buttons
        • Button group
        • File download
        • Save bar
        • Tasklist
        • Contextual Toolbar
      • Datalist
      • Datatable
      • Feedback
        • Alerts
        • Activity Loader
        • Badge (status)
        • Empty state
        • Snackbar
      • Form
        • Fields
        • Pickers
        • Selection controls
        • Tree
      • Images
        • Illustrations
        • Icons
        • Media
      • Navigation
        • Hyperlink
        • Page title
        • Sidebar
        • Top bar
      • Overlays
        • Modal
        • Popover
        • Tooltip
        • Side Drawer
      • Structure
        • Global layout
        • Panel
          • Activable Panel
          • Clickable Panel
          • Expandable Panel
          • Panel tabs
          • Totalizer Panel
        • Card
    • Patterns
      • Advanced selection
      • Configure options
      • Displaying data
      • Displaying history
      • Errors
      • Forms
        • Form - Creation mode
        • Form - Edition mode
        • Form - In a modal
        • Error Management
        • Stepper form
        • Onboarding form
      • Loading
      • Progressive disclosure
  • content
    • Writing for Mirakl
      • Grammar and formatting
    • Vocabulary
      • Mirakl products
      • Which verb to use
Powered by GitBook
On this page
  • Overview
  • Guidelines
  • Accessibility
  • Content

Was this helpful?

  1. Design
  2. Components
  3. Actions

Button group

Button group is used to gather multiple actions.

Last updated 1 year ago

Was this helpful?

Overview

Use Button group when you have to display multiple buttons located in the same space. Button Group will help to space buttons out evenly.

It can contain the following combinations:

  • 1 Primary Button + 1 Secondary button : when two actions are available, but one is more important than the other

  • 2 Secondary Buttons : when two actions are available, and none is more important

Guidelines

Buttons must be displayed in order of importance :

  • Primary Button , if there is any, should always be displayed as the group's first action. ⚠️ Only one primary Action Button can be used in a Button Group.

  • The Secondary Button comes afterward

  • Menu Button comes last

💡 Please keep in mind that depending on the context, Button groupcan be displayed from left to right or from right to left.

Use only one primary action

Put primary action as the first button of the group

Do not use 2 primary actions

Accessibility

While it's not a formal WGAC rule, it's considered good practice to maintain a minimum 8px spacing between buttons to prevent accidental clicks. This spacing is automatically managed by ROMA, so please avoid altering it for larger or smaller gaps

Content

1 Primary Button OR 1 Secondary Button + 1 : when there are more than two actions available, but one stands out, and others are regrouped in a sub-menu

2 buttons + 1

Button group content must follow .

Button Group with primary and secondary actions
Menu Button
Menu Button
button guidelines