Skip to content

Design and user interface changes

Follow these guidelines when contributing or reviewing design and user interface (UI) changes. Refer to our code review guide for broader advice and best practices for code review in general.

The basis for most of these guidelines is Pajamas, GitLab design system. We encourage you to contribute to Pajamas with additions and improvements.

Merge request reviews

As a merge request (MR) author, you must:

  • Include Before and After screenshots (or videos) of your changes in the description, as explained in our MR workflow. These screenshots/videos are very helpful for all reviewers and can speed up the review process, especially if the changes are small.
  • Attach the ~UX label to any merge request that has any user facing changes. This will trigger our Reviewer Roulette to suggest a UX reviewer.

If you are a team member: We recommend assigning the Product Designer suggested by the Reviewer Roulette as reviewer. This helps us spread work evenly, improve communication, and make our UI more consistent. If you have a reason to choose a different reviewer, add a comment to mention you assigned it to a Product Designer of your choice.

If you are a community contributor: We favor choosing the Product Designer that is a domain expert in the area you are contributing, to regardless of the Reviewer Roulette.

Checklist

Check these aspects both when designing and reviewing UI changes.

Writing

  • Follow Pajamas as the primary guidelines for UI text and documentation style guide as the secondary.
  • Use clear and consistent terminology.
  • Check grammar and spelling.
  • Consider help content and follow its guidelines.
  • Request review from the appropriate Technical Writer, indicating any specific files or lines they should review, and how to preview or understand the location/context of the text from the user's perspective.

Patterns

  • Consider similar patterns used in the product and justify in the issue when diverging from them.
  • Use appropriate components and data visualizations.

Visual design

Check visual design properties using your browser's elements inspector (Chrome, Firefox).

Dark Mode

You're not required to design for dark mode while the feature is an experiment. The UX Foundations team plans to improve the dark mode in the future. Until we integrate Pajamas components into the product and the underlying design strategy is in place to support dark mode, we cannot guarantee that we won't introduce bugs and debt to this mode. At your discretion, evaluate the need to create dark mode patches.

States

Check states using your browser's styles inspector to toggle CSS pseudo-classes like :hover and others (Chrome, Firefox).

  • Account for all applicable states (error, rest, loading, focus, hover, selected, disabled).
  • Account for states dependent on data size (empty, some data, and lots of data).
  • Account for states dependent on user role, user preferences, and subscription.
  • Consider animations and transitions, and follow their guidelines.

Responsive

Check responsive behavior using your browser's responsive mode (Chrome, Firefox).

  • Account for resizing, collapsing, moving, or wrapping of elements across all breakpoints (even if larger viewports are prioritized).
  • Provide the same information and actions in all breakpoints.

Accessibility

Check accessibility using your browser's accessibility inspector (Chrome, Firefox).

Handoff

When the design is ready, before starting its implementation:

Follow-ups

At any moment, but usually during or after the design's implementation:

  • Contribute issues to Pajamas for additions or enhancements to the design system.
  • Create issues with the ~Deferred UX label for intentional deviations from the agreed-upon UX requirements due to time or feasibility challenges, linking back to the corresponding issues or merge requests.
  • Create issues for feature additions or enhancements outside the agreed-upon UX requirements to avoid scope creep.