Make the GlProgressBar default variant neutral and add an info variant

What does this MR do?

Updates the default variant to use neutral colors, so the default progress bar renders a neutral indicator instead of a blue one. The blue indicator moves to a new info variant. See the progress bar variants.

  • Updates the default variant to use the neutral indicator color, and adds the info variant.
  • Changes progress-bar.indicator.color.default to neutral 900 in light mode and neutral 50 in dark mode, and adds progress-bar.indicator.color.info for the blue indicator.
  • Deprecates primary in favor of info. It still renders the info styles, so existing variant="primary" usages don't change. .gl-progress-bar-primary is kept because Pajamas::ProgressComponent in GitLab builds the class name from its :primary default.
  • Updates the docs, story, specs, and the Code Connect template.

Contrast against the track

Mode Before (blue, primary) After (default)
Light blue 500 on neutral 200: 2.63:1 neutral 900 on neutral 200: 8.08:1
Dark blue 300 on neutral 700: 3.39:1 neutral 50 on neutral 700: 7.25:1

The old default was below the 3:1 non-text contrast minimum in light mode. info keeps the blue values, so it still is.

Follow-ups

  • The Figma component library still has primary (default). It needs a neutral default and an info option. The Code Connect template already maps both, and maps primary (default) to info.
  • Pajamas::ProgressComponent in GitLab still defaults to :primary, so it stays blue until it switches to :default.
  • The progress bar image snapshots need updating.

Screenshots or screen recordings

Before After
Default
light_before light_after
dark_before dark_after
Info
— light_before
— dark_before

Integrations

Does this MR meet the acceptance criteria?

This checklist encourages the authors, reviewers, and maintainers of merge requests (MRs) to confirm changes were analyzed for conformity with the project's guidelines, security and accessibility.

Toggle the acceptance checklist

Conformity

  • The “What does this MR do?” section in the MR description is filled out, explaining the reasons for and scope of the proposed changes, per “Say why not just what”.
    • For example, if the MR is focused on usage guidelines, addressing accessibility challenges could be added in a separate MR.
  • Relevant label(s) are applied to the MR.
  • The MR is added to a milestone.
  • Added the ~"component:*" label(s) if applicable.
  • A changeset is added when this MR will do a patch, minor, or major update. More information can be found in doc/changesets.md.

Components

Documentation

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • Security reports checked/validated by a reviewer from the AppSec team

Accessibility

If this MR adds or modifies a component, take a few moments to review the following:

  • All actions and functionality can be done with a keyboard.
  • Links, buttons, and controls have a visible focus state.
  • All content is presented in text or with a text equivalent. For example, alt text for SVG, or aria-label for icons that have meaning or perform actions.
  • Changes in a component’s state are announced by a screen reader. For example, changing aria-expanded="false" to aria-expanded="true" when an accordion is expanded.
  • Color combinations have sufficient contrast.

🤖 Generated with Claude Code

Edited by Design System Danger Token

Merge request reports

Loading
Loading