Skip to content

Commit 18227f3

Browse files
authored
Update seo h1 to be accessibly hidden vs visually hidden (#3892)
1 parent 594b5c4 commit 18227f3

File tree

1 file changed

+1
-1
lines changed
  • packages/web/scripts/workers-site

1 file changed

+1
-1
lines changed

packages/web/scripts/workers-site/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class SEOHandlerBody {
135135
if (!h1) {
136136
return
137137
}
138-
const h1Tag = `<h1 id="audius-h1" style="visibility:hidden;display:none;">${h1}</h1>`
138+
const h1Tag = `<h1 id="audius-h1" style="position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;">${h1}</h1>`
139139
element.prepend(h1Tag, { html: true })
140140
}
141141
}

0 commit comments

Comments
 (0)