Skip to content

Commit a14aa87

Browse files
authored
Fix: Table row highlighting (#8)
1 parent 8bd5fb5 commit a14aa87

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CommitRangeReleaseNotesTask/task/defaultTemplateHtml.hbs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@
7171
transition: background 0.2s;
7272
outline: none;
7373
}
74-
75-
.expandable-row:active,
76-
.expandable-row:focus {
74+
.expandable-row:hover {
7775
background: #e0eaff;
7876
}
7977
@@ -496,14 +494,19 @@
496494
document.querySelectorAll('.description-row').forEach(function (desc) {
497495
desc.classList.remove('open');
498496
});
499-
// Update ARIA
497+
// Update ARIA and remove highlight immediately
500498
document.querySelectorAll('.expandable-row').forEach(function (r) {
501499
r.setAttribute('aria-expanded', 'false');
500+
r.classList.remove('highlight');
502501
});
503502
// Toggle: open if not open, close if open
504503
if (!isOpen) {
505504
descRow.classList.add('open');
506505
row.setAttribute('aria-expanded', 'true');
506+
row.classList.add('highlight');
507+
setTimeout(function () {
508+
row.classList.remove('highlight');
509+
}, 1500);
507510
}
508511
}
509512
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0a83546e-bcb8-405e-a9dd-0aaf61928c17
1+
4ebdb70f-25d9-4998-9082-5c8a57aa02d4

0 commit comments

Comments
 (0)