Make sure a.anchor::after has position absolute all the time

What does this MR do and why?

Make sure a.anchor::after has position absolute all the time

Currently on production, position: absolute; is only applied when the heading is hovered, causing some layout jumpiness.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2025-03-11_at_15.15.15 Screen_Recording_2025-03-11_at_15.15.44

How to set up and validate locally

  1. Check out this branch
  2. Create a new issue in the GDK with the following contents in the description:
### Test metadata

| Field | Value |
| ------ | ------ |
| File URL | [`ee/spec/requests/remote_development/integration_spec.rb#L469`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/spec/requests/remote_development/integration_spec.rb#L469) |
| Filename | `ee/spec/requests/remote_development/integration_spec.rb` |
| Description | `` Full workspaces integration request spec a happy path workspace lifecycle behaves like workspace lifecycle successfully exercises the full lifecycle of a workspace `` |
| Test level | `integration` |
| Hash | `83533d39bc3218161f24b71c92514ffafb0923936` |
| Max expected duration | < 19.2 seconds |
  1. Hover over the Test metadata heading
  2. The layout will not shift when you hover and the anchor appears for the heading

Merge request reports

Loading