qunitjs / qunit

🔮 An easy-to-use JavaScript unit testing framework.
https://qunitjs.com
MIT License
4.02k stars 783 forks source link

HTML Reporter: QUnit 3.0 theme structure and layout #1774

Closed Krinkle closed 1 week ago

Krinkle commented 1 week ago
Before (main) After
Live demo: https://codepen.io/Krinkle/full/GRbKpMY Live demo: https://codepen.io/Krinkle/full/JjQPYOy
Screenshot Screenshot

This may be a breaking change for themes that rely on the default HTML as created by a <div id="qunit"> element. The changes are fairly small but they could break certain theme layouts. If you prefer the old structure, replace <div id="qunit"> with the following instead:

Notable changes:

Fixes https://github.com/qunitjs/qunit/issues/1603.

At small screens / tiny embedded demo on the homepage:

Before (main) After
Live demo: https://codepen.io/Krinkle/full/GRbKpMY Live demo: https://codepen.io/Krinkle/full/JjQPYOy
Screenshot Screenshot
Krinkle commented 1 week ago

@IgnaceMaes I'd value your feedback on this, as author of qunit-theme-ember! For this PR, I'm focussing on the structure and layout.

After this, I'm also interested in giving QUnit a new paint job for the QUnit 3.0 release. Possibly similar to qunit-theme-ember, or perhaps based on the colors of https://qunitjs.com. Thoughts, questions, concerns, and ideas are most welcome!

Krinkle commented 1 week ago
Before (main) After
Screenshot Screenshot
A B

Should the UA string be in the same darkened style?

Screenshot 2024-07-09 at 23 31 25