From e117329b19d673006ef2cda856367c7d16083fe5 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Wed, 29 May 2019 22:45:30 +0200 Subject: [PATCH] Add tooltip (#15) --- package.json | 2 +- src/manifest.json | 2 +- src/prose.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 47a67da..eceb117 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Edit-in-Prose", - "version": "1.1.2", + "version": "1.2.0", "description": "Provides an \"Edit in Prose\" link from a hosted file on GitHub.", "homepage": "https://github.com/prose/browser-extensions/", "license": "BSD-3-Clause", diff --git a/src/manifest.json b/src/manifest.json index 1a8fbfc..025aacc 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "name": "Edit in Prose", "description": "Provides an \"Edit in Prose\" link from a hosted file on GitHub.", - "version": "1.1.2", + "version": "1.2.0", "manifest_version": 2, "author": "Tristen Brown", "homepage_url": "http://prose.io", diff --git a/src/prose.js b/src/prose.js index baeae26..988423f 100644 --- a/src/prose.js +++ b/src/prose.js @@ -35,8 +35,9 @@ const link = document.createElement('a'); link.id = 'prose'; link.innerHTML = 'Edit in Prose'; - link.className = 'btn btn-sm BtnGroup-item'; + link.className = 'btn btn-sm BtnGroup-item tooltipped tooltipped-n rgh-md-source'; link.rel = 'nofollow'; + link.setAttribute('aria-label', 'Open file in Prose.io'); a = link.firstChild; group.insertBefore(link, group.firstChild); }