Skip to content

Commit 4444f5e

Browse files
mfeckietrentmwillis
authored andcommitted
CSS: Tweak CSS to address dropdown and button styles
The tested site can override the styling of buttons, which causes the displayed content to 'jump' around while tests are running, so ensure that all buttons in qunit elements are set to inital font size, border and background. With modules that have long names, the filter list becomes un-useable, so allow them to grow using min-width rather than fixed width
1 parent 557cc6a commit 4444f5e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/qunit.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111

1212
/** Font Family and Sizes */
1313

14+
15+
[id^=qunit] button {
16+
font-size: initial;
17+
border: initial;
18+
background-color: buttonface;
19+
}
20+
1421
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
1522
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
1623
}
@@ -118,7 +125,7 @@
118125

119126
#qunit-modulefilter-search {
120127
box-sizing: border-box;
121-
width: 400px;
128+
min-width: 400px;
122129
}
123130

124131
#qunit-modulefilter-search-container:after {
@@ -131,7 +138,7 @@
131138
#qunit-modulefilter-dropdown {
132139
/* align with #qunit-modulefilter-search */
133140
box-sizing: border-box;
134-
width: 400px;
141+
min-width: 400px;
135142
position: absolute;
136143
right: 0;
137144
top: 50%;
@@ -204,6 +211,7 @@
204211
#qunit-modulefilter-dropdown-list .clickable {
205212
display: block;
206213
padding-left: 0.15em;
214+
padding-right: 0.5em;
207215
}
208216

209217

0 commit comments

Comments
 (0)