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.
Closes #1452.
  • Loading branch information
Krinkle authored Jun 29, 2020
1 parent 0a0b7b8 commit 6dc314b
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 6dc314b

Please sign in to comment.