Despite being aware of new Vector for quite some time now, I was always confused as to why the search bar behaves like it does: unfocused, it has one width, and focused it becomes another width for some reason. More weirdly, some wikis (Wikipedias, mw.org) have that movement, and others (Commons) don’t. To me it always appeared confusing and distracting, since you constantly notice the animation while trying to use the search bar.
Only now @Jack_who_built_the_house explained to me that, apparently, it does this because on some wikis there are thumbnails in the search suggestions, and on others there are no thumbnails. The search bar apparently tries to accommodate visually for where the thumbnails would appear.
While I see the reasoning in this, I want to at least suggest that this distracting animation would be removed and a solution can be found where this search bar always displays with the padding necessary if the website has thumbnails in search suggestions and if it doesn’t. This way, the designers’ sensibilities can be met while not confusing or distracting anyone with unnecessary animation that probably can’t be turned off, too (see WCAG 2.1 criterion 2.3.3).
Update on the accessibility impact from T314179#8143610:
“users already have the ability to not show animations and transitions [relying on a user preference which we support since May 2022 in MediaWiki] ”
See also: T312594: TypeaheadSearch: search input should expand width when menu opens



