Allow setting accessibleDisabledButton config for gitlab-ui

What does this MR do and why?

Allow setting accessibleDisabledButton config for gitlab-ui.

Adds the accessible_disabled_button feature flag and wires its value through gon.features.accessibleDisabledButton into applyGitLabUIConfig, so GlButton's new accessibleDisabled default can be controlled per environment during rollout.

Mirrors the pattern established for accessibleLoadingButton in !208901 (merged).

The feature flag defaults to off. No behavior change until enabled.

References

How to set up and validate locally

Once !236541 (merged) is merged:

  1. Enable the feature flag in a Rails console Feature.enable(:accessible_disabled_button)
  2. Render any disabled GlButton. The button should now use aria-disabled="true" instead of the native disabled attribute, remain focusable, and be announced by screen readers.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #600158

Edited by Adam Ferch

Merge request reports

Loading