Skip to content

Commit

Permalink
HTML Reporter: Fix unexpected pointer cursor on "Source:" label
Browse files Browse the repository at this point in the history
`#qunit-tests li strong` also applied to `#qunit-tests li .qunit-source strong`

Cherry-picked from 52bfa69 (3.0.0-dev).
  • Loading branch information
Krinkle committed Jan 19, 2025
1 parent 61c2501 commit f8cce2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/html-reporter/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ const stats = {
}

let title = document.createElement('strong');
title.className = 'qunit-test-name';
title.innerHTML = getNameHtml(name, moduleName);

let testBlock = document.createElement('li');
Expand Down
4 changes: 2 additions & 2 deletions src/qunit.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@
margin: 0;
}

#qunit-tests li strong {
#qunit-tests li .qunit-test-name {
cursor: pointer;
}

#qunit-tests li.skipped strong {
#qunit-tests li.skipped .qunit-test-name {
cursor: default;
}

Expand Down

0 comments on commit f8cce2b

Please sign in to comment.