On pages for non-existing articles, German Wikipedia has a search field with the button Artikel suchen (Search article). That text is is truncated. I think it should not be, given how much additional unused horizontal space exists. This is browser-independent and skin-independent.
This is happening because Codex Buttons have a min-width of 32px (or 44px for large buttons). This is meant to keep icon-only buttons square and the same min-size at different font sizes. However..
- The min-width makes it possible for buttons to shrink below their content width in flex layouts
- The min-width doesn't even seem to be necessary for icon-only buttons because their icon size, padding, and border all add up to the same value
To solve this, we should either only apply the min-width to icon-only buttons, or remove it altogether.
Acceptance criteria
- Add Sandbox demos reproducing the issue
- Remove the min-width, or only apply it to icon-only buttons
- Conduct Pixel testing to look for regressions