Skip to content

Commit

Permalink
chore(ui): topbar 🤝 accessibility reports
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalpopov committed Nov 14, 2024
1 parent a03ee2b commit 0523815
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/browser/topbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ const repaint = () => {
ctx.stroke()
}
const createCanvas = () => {
canvas = document.createElement('canvas')
const canvas = document.createElement('canvas')
canvas.ariaHidden = 'true'
const style = canvas.style
style.position = 'fixed'
style.top = style.left = style.right = style.margin = style.padding = 0
style.zIndex = 100001
style.top = style.left = style.right = style.margin = style.padding = '0'
style.zIndex = '100001'
style.display = 'none'
document.body.appendChild(canvas)
addEvent(window, 'resize', repaint)
Expand Down

0 comments on commit 0523815

Please sign in to comment.