Use aria-label for links only
What does this MR do and why?
Use aria-label for links only
Add aria-label only when the CI icon is a link. When it is a span and has no text, use aria-label content to render text visible only to screen users.
Changelog: fixed
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |
| Storybook test results after changes |
|---|
![]() |
How to set up and validate locally
- Checkout the branch
- Run
yarn storybook:start - When the storybook is build, check out http://localhost:6006/?path=/story/vue-shared-ci-icon-ci-icon--no-link
- Open Accessibility panel. There should be no violation found.
- Visit any pipeline view on your GDK and verify the icons are spans without an aria-label and include a non-visible span with alternative text.
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 #562329 (closed)
Edited by Paulina Sedlak-Jakubowska




