Skip to content

Commit 3ff610f

Browse files
authored
editorial: remove (defunct) .compact from indices (#2555)
1 parent 4bdff66 commit 3ff610f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

common/script/aria.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const renderIndexStatesAndProperties = (propList) => {
142142
`<dt><a href="#${item.title}" class="${item.is}-reference">${item.name}</a></dt>\n<dd>${item.desc}</dd>\n`
143143
)
144144
.join("");
145-
indexStatePropPlaceholder.outerHTML = `<dl id="index_state_prop" class="compact">${indexStatePropContent}</dl>`;
145+
indexStatePropPlaceholder.outerHTML = `<dl id="index_state_prop">${indexStatePropContent}</dl>`;
146146
};
147147

148148
/**
@@ -450,21 +450,21 @@ const renderIndices = (rdefs) => {
450450
// spit out the indices
451451
document.getElementById(
452452
"index_role"
453-
).outerHTML = `<dl id="index_role" class="compact">${roleIndex}</dl>`;
453+
).outerHTML = `<dl id="index_role">${roleIndex}</dl>`;
454454
document.getElementById(
455455
"index_fromauthor"
456-
).outerHTML = `<ul id="index_fromauthor" class="compact">${fromAuthor}</ul>`;
456+
).outerHTML = `<ul id="index_fromauthor">${fromAuthor}</ul>`;
457457
document.getElementById(
458458
"index_fromcontent"
459-
).outerHTML = `<ul id="index_fromcontent" class="compact">${fromContent}</ul>`;
459+
).outerHTML = `<ul id="index_fromcontent">${fromContent}</ul>`;
460460
document.getElementById(
461461
"index_fromprohibited"
462-
).outerHTML = `<ul id="index_fromprohibited" class="compact">${fromProhibited}</ul>`;
462+
).outerHTML = `<ul id="index_fromprohibited">${fromProhibited}</ul>`;
463463
// TODO: remove if-check after w3c/aria#1860
464464
if (document.getElementById("index_fromheading"))
465465
document.getElementById(
466466
"index_fromheading"
467-
).outerHTML = `<ul id="index_fromheading" class="compact">${fromHeading}</ul>`;
467+
).outerHTML = `<ul id="index_fromheading">${fromHeading}</ul>`;
468468
};
469469

470470
/**

0 commit comments

Comments
 (0)