Skip to content

Commit e117329

Browse files
authored
Add tooltip (#15)
1 parent 29270f8 commit e117329

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Edit-in-Prose",
3-
"version": "1.1.2",
3+
"version": "1.2.0",
44
"description": "Provides an \"Edit in Prose\" link from a hosted file on GitHub.",
55
"homepage": "https://github.com/prose/browser-extensions/",
66
"license": "BSD-3-Clause",

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Edit in Prose",
33
"description": "Provides an \"Edit in Prose\" link from a hosted file on GitHub.",
4-
"version": "1.1.2",
4+
"version": "1.2.0",
55
"manifest_version": 2,
66
"author": "Tristen Brown",
77
"homepage_url": "http://prose.io",

src/prose.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
const link = document.createElement('a');
3636
link.id = 'prose';
3737
link.innerHTML = '<span class="prose-icon"></span>Edit in Prose';
38-
link.className = 'btn btn-sm BtnGroup-item';
38+
link.className = 'btn btn-sm BtnGroup-item tooltipped tooltipped-n rgh-md-source';
3939
link.rel = 'nofollow';
40+
link.setAttribute('aria-label', 'Open file in Prose.io');
4041
a = link.firstChild;
4142
group.insertBefore(link, group.firstChild);
4243
}

0 commit comments

Comments
 (0)