Skip to content

Fix anchor focus styling for markdown headings

Mike Greiling requested to merge 294430-mg-add-focus-styling-to-anchors into master

What does this MR do?

The anchor (chain link icon) links next to each heading and sub-heading in rendered markdown sections of GitLab would previously be invisible even when :focused. Now they show up as they should when they receive :focus.

I have also moved the anchor icon a few extra pixels to the left so that the outline does not overlap the start of the header text.

Screenshots (strongly suggested)

CleanShot_2021-02-01_at_17.32.57

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

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
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #294430 (closed)

Merge request reports