Skip to content

Commit

Permalink
CSS: Scope QUnit UI button style to not affect #qunit-fixture
Browse files Browse the repository at this point in the history
There are currently two places where we use buttons:
* The toolbar, with the filter "Go" button and the "Apply" and "Reset"
  buttons for the module dropdown.
* The test results, with the temporal "Abort" button.

Fixes #1437.
  • Loading branch information
Krinkle committed Jun 25, 2020
1 parent 0a0b7b8 commit 2712308
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/qunit.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@

/** Font Family and Sizes */


[id^=qunit] button {
/* Style our buttons in a simple way, uninfluenced by the styles
the tested app might load. Don't affect buttons in #qunit-fixture!
https://github.com/qunitjs/qunit/pull/1395
https://github.com/qunitjs/qunit/issues/1437 */
#qunit-testrunner-toolbar button,
#qunit-testresult button {
font-size: initial;
border: initial;
background-color: buttonface;
Expand Down

0 comments on commit 2712308

Please sign in to comment.