Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Update seo h1 to be accessibly hidden vs visually hidden (#3892)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers committed Aug 16, 2023
1 parent 5217deb commit f9382e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/scripts/workers-site/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class SEOHandlerBody {
if (!h1) {
return
}
const h1Tag = `<h1 id="audius-h1" style="visibility:hidden;display:none;">${h1}</h1>`
const h1Tag = `<h1 id="audius-h1" style="position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;">${h1}</h1>`
element.prepend(h1Tag, { html: true })
}
}
Expand Down

0 comments on commit f9382e9

Please sign in to comment.