Anchor links overlays section expander when using heading in details summary
Summary
When using text heading in a section summary within an issue or MR description both an anchor link and expand action appear in the same space.
Steps to reproduce
Add the following text in an issue description and save:
<details><summary><h3>Heading 3</h3></summary> detail</details>
Example Project
gitlab
What is the current bug behavior?
Both links appear and overlap
What is the expected correct behavior?
Anchor link is set apart from the expander to avoid any overlap
Relevant logs and/or screenshots
test
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:env:info\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:check SANITIZE=true`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true`) (we will only investigate if the tests are passing)
Possible fixes
Edited by Nick Leonard