Skip to content

A platform for community discussion. Free, open, simple.

FIX: two elements should not have the same ID (#26305)

Kris42b10f802de8
diff --git a/app/assets/javascripts/discourse/app/templates/user.hbs b/app/assets/javascripts/discourse/app/templates/user.hbs
index 1e63eecad65..e85d166b2c0 100644
--- a/app/assets/javascripts/discourse/app/templates/user.hbs
+++ b/app/assets/javascripts/discourse/app/templates/user.hbs
@@ -10,7 +10,7 @@
{{this.primaryGroup}}"
>
<section class="user-main">
- <a href="#user-content" id="skip-link" class="skip-link__user-nav">
+ <a href="#user-content" id="user-nav-skip-link" class="skip-link__user-nav">
{{i18n "skip_user_nav"}}
</a>
<section
diff --git a/app/assets/stylesheets/common/base/discourse.scss b/app/assets/stylesheets/common/base/discourse.scss
index 7c28578eb20..7d5a0e4af55 100644
--- a/app/assets/stylesheets/common/base/discourse.scss
+++ b/app/assets/stylesheets/common/base/discourse.scss
@@ -772,6 +772,7 @@ textarea {
}
}
+a#user-nav-skip-link,
a#skip-link {
padding: 0.25em 0.5em;
position: fixed;