mediawiki-skins-Vector/bundlesize.config.json
Nicholas Ray 0fdd4a99ac Sync location/other styles of #mw-searchButton with #searchButton
`#mw-searchButton` is apparently used with no-js clients or if the
js-search is broken [1]. Its position and dimensions should be kept in
sync with #searchButton.

This commit:

* Ensures that the same styles, including position, applied to #searchButton
are applied to "#mw-searchButton" so the dimensions are identical. This
should also address a critique in T270202 by removing the "invisible
button".

* Applies a `client-js` selector to ensure these buttons are
only positioned to the left of the search input if js is enabled. If js
is not enabled, having these positioned to the left is confusing as the
input has no obvious "submit" button.

* Syncs the input's end padding to match WVUI's input's end padding if
JS is enabled.

[1] 465e9492bb/includes/templates/SearchBox.mustache (L12-L21)

Bug: T270202
Change-Id: Ie1bb8c68b713b3a18f90ee11b44c78b436a6d0ba
2020-12-18 11:14:19 -07:00

23 lines
384 B
JSON

[
{
"resourceModule": "skins.vector.styles.legacy",
"maxSize": "8.0 kB"
},
{
"resourceModule": "skins.vector.styles",
"maxSize": "9.3 kB"
},
{
"resourceModule": "skins.vector.styles.responsive",
"maxSize": "0.6 kB"
},
{
"resourceModule": "skins.vector.legacy.js",
"maxSize": "1.8 kB"
},
{
"resourceModule": "skins.vector.search",
"maxSize": "2.8 kB"
}
]