From f3f5ab5b9c38d3a7c55d6d834efe68ad408041e1 Mon Sep 17 00:00:00 2001 From: Ty Everett Date: Fri, 31 Jan 2020 15:33:38 -0800 Subject: [PATCH] Add iframe title for accessibliity Currently, the `iframe` tag created by this library does not have a title. This causes issues for accessibility and in LightHouse audits. Here I've added a title which should resolve the issue. --- src/widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget.js b/src/widget.js index 3c69676c..a66f5617 100644 --- a/src/widget.js +++ b/src/widget.js @@ -81,6 +81,7 @@ var iframe = d.createElement('iframe'); iframe.setAttribute('id', identity); + iframe.setAttribute('title', 'GitHub Profile'); iframe.setAttribute('frameborder', 0); iframe.setAttribute('scrolling', 0); iframe.setAttribute('allowtransparency', true);