Skip to content

Commit

Permalink
Add tooltip (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed May 29, 2019
1 parent 29270f8 commit e117329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/prose.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
const link = document.createElement('a');
link.id = 'prose';
link.innerHTML = '<span class="prose-icon"></span>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);
}
Expand Down

0 comments on commit e117329

Please sign in to comment.