adding tab index to operations panel

This commit is contained in:
j264415 2024-02-09 17:25:52 +00:00
parent c13997bdb1
commit 65b058fd68
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class HTMLCategory {
*/ */
toHtml() { toHtml() {
const catName = "cat" + this.name.replace(/[\s/\-:_]/g, ""); const catName = "cat" + this.name.replace(/[\s/\-:_]/g, "");
let html = `<div class="panel category"> let html = `<div class="panel category" tabIndex="0">
<a class="category-title" data-toggle="collapse" data-target="#${catName}"> <a class="category-title" data-toggle="collapse" data-target="#${catName}">
${this.name} ${this.name}
</a> </a>

View file

@ -46,7 +46,7 @@ class HTMLOperation {
* @returns {string} * @returns {string}
*/ */
toStubHtml(removeIcon) { toStubHtml(removeIcon) {
let html = "<li class='operation'"; let html = "<li tabIndex='0' class='operation'";
if (this.description) { if (this.description) {
const infoLink = this.infoURL ? `<hr>${titleFromWikiLink(this.infoURL)}` : ""; const infoLink = this.infoURL ? `<hr>${titleFromWikiLink(this.infoURL)}` : "";