Skip to content

Commit

Permalink
Covert mouse to pointer on menu entry hover (#18)
Browse files Browse the repository at this point in the history
The custom menu entry misses the href attribute which is responsible
for converting the mouse to a pointer on hover.
In order to make it more consistent we can add the style manually.
  • Loading branch information
Elias Müller authored Apr 26, 2021
1 parent 1b6dfeb commit 1c84d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion douki.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class DomMethods {
const selector = '.header-menu-dropdown > ul > li:last-child';
const dropdown = document.querySelector(selector);
if (dropdown) {
const html = `<li><a aria-role="button" id="${const_1.DROPDOWN_ITEM_ID}">Import from Anilist</a></li>`;
const html = `<li><a aria-role="button" style="cursor: pointer" id="${const_1.DROPDOWN_ITEM_ID}">Import from Anilist</a></li>`;
dropdown.insertAdjacentHTML('afterend', html);
const link = document.querySelector(Util_1.id(const_1.DROPDOWN_ITEM_ID));
link && link.addEventListener('click', function (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/Dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class DomMethods implements IDomMethods {
const selector = '.header-menu-dropdown > ul > li:last-child';
const dropdown = document.querySelector(selector);
if (dropdown) {
const html = `<li><a aria-role="button" id="${DROPDOWN_ITEM_ID}">Import from Anilist</a></li>`;
const html = `<li><a aria-role="button" style="cursor: pointer" id="${DROPDOWN_ITEM_ID}">Import from Anilist</a></li>`;
dropdown.insertAdjacentHTML('afterend', html);
const link = document.querySelector(id(DROPDOWN_ITEM_ID));
link && link.addEventListener('click', function (e) {
Expand Down

0 comments on commit 1c84d57

Please sign in to comment.