[Duo Assisted] Use code element instead of read-only input field
What does this MR do and why?
This addresses an accessibility issue in the Container Registry empty state by replacing the read-only input fields with code elements.
This change was partly written by Duo Workflow for #517190 (closed)
References
- https://gitlab.com/gitlab-org/gitlab/-/issues/511745
- #517190 (closed)
- See also https://gitlab.com/gitlab-org/gitlab/-/issues/511882, https://gitlab.com/gitlab-org/gitlab/-/issues/511728, and !179133 (merged)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the container registry. For example, add the following to
gdk.yml:registry: enabled: true - Navigate to a project that doesn't have any containers in the registry. E.g.: http://gdk.test:3000/flightjs/Flight/container_registry
- Inspect the elements containing Docker CLI commands and note that they're
codeelements notinputfields.
Edited by Mark Lapierre

