Skip to content

Commit

Permalink
fix: set tabindex elements outline none #91;
Browse files Browse the repository at this point in the history
  • Loading branch information
MapoMagpie committed Sep 27, 2024
1 parent bc4164c commit c0e411f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion eh-view-enhance.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7732,6 +7732,9 @@ before contentType: ${contentType}, after contentType: ${blob.type}
position: absolute;
right: 0.2em;
}
.full-view-grid, .big-img-frame {
outline: none !important;
}
.full-view-grid .img-node {
position: relative;
}
Expand Down Expand Up @@ -9038,7 +9041,6 @@ ${chapters.map((c, i) => `<div><label>
const base = document.createElement("div");
const dt = getDisplayText();
base.id = "ehvp-base";
base.setAttribute("tabindex", "0");
base.setAttribute("style", "all: initial");
document.body.after(base);
const HTML_STRINGS = `
Expand Down
2 changes: 1 addition & 1 deletion src/ui/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createHTML() {
const base = document.createElement("div");
const dt = getDisplayText();
base.id = "ehvp-base";
base.setAttribute("tabindex", "0");
// base.setAttribute("tabindex", "5");
base.setAttribute("style", "all: initial");
document.body.after(base);
const HTML_STRINGS = `
Expand Down
3 changes: 3 additions & 0 deletions src/ui/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export function styleCSS() {
position: absolute;
right: 0.2em;
}
.full-view-grid, .big-img-frame {
outline: none !important;
}
.full-view-grid .img-node {
position: relative;
}
Expand Down

0 comments on commit c0e411f

Please sign in to comment.