Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ function base64toBlob(dataURI: string, type: string) {
}
return new Blob([ab], { type: 'image/jpeg' });
}
// Process images on page
Array.from(document.getElementsByTagName("img")).forEach(image => {
if (!image.hasAttribute("tabindex") && !image.closest("a")) {
image.setAttribute("tabindex", "0");
}
});
// // Process images on page
// Array.from(document.getElementsByTagName("img")).forEach(image => {
// if (!image.hasAttribute("tabindex") && !image.closest("a")) {
// image.setAttribute("tabindex", "0");
// }
// });

console.debug("ext version from content", extVersion);
document.onreadystatechange = function () {
Expand Down
12 changes: 12 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
border: 0;
}

.sr-only:focus,
.sr-only:focus-visible {
position: static;
width: auto;
height: auto;
padding: revert;
margin: revert;
overflow: visible;
clip: auto;
border: revert;
}

.monarch-dropdown-sr-only option {
padding: 10px;
cursor: pointer;
Expand Down
Loading