Although it's unlikely that a button without a label, icon or indicator would be presented to the user, not having a uniform height when a button is not yet configured to have one of these properties can cause calculations during setup processes to yield unexpected results. This essentially creates a hard to detect trap that developers will fall into on occasion.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T113560 Standardize MediaWiki components (tracking) | |||
Resolved | Jdforrester-WMF | T88449 Buttons differ between OOjs UI and mediawiki UI (tracking) | |||
Resolved | • bmansurov | T100297 [EPIC] Turn off alpha | |||
Resolved | • Jhernandez | T100704 Remove 'Report an error' from MobileFrontend | |||
Resolved | • Nirzar | T91473 OOjs UI and MediaWiki UI buttons are different sizes | |||
Resolved | Volker_E | T93290 ButtonElements with no label, icon and indicator should still have consistent height | |||
Resolved | • Nirzar | T94750 In MediaWiki theme, button height should be controlled only by 'padding' and label 'line-height' |
Event Timeline
Do we just want to set the button height?
https://gerrit.wikimedia.org/r/199246 (adds test cases to demo page)
@Nirzar proposed T94750: In MediaWiki theme, button height should be controlled only by 'padding' and label 'line-height', which would also solve this issue.
Change 216864 had a related patch set uploaded (by Jforrester):
MediaWiki theme: Alter buttons' padding and position icons absolutely
Change 216864 merged by jenkins-bot:
MediaWiki theme: Alter buttons' padding and position icons absolutely
Change 355247 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Remove dialog height hack tagged against resolved bug
Change 355247 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Remove dialog height hack tagged against resolved bug
We've removed min-height for framed buttons in rGOJU1dcc221214b1.
We could probably integrate a default padding-top for non-labelled buttons, which is then overridden by .oo-ui-labelElement styles.
Change 361596 had a related patch set uploaded (by VolkerE; owner: VolkerE):
[oojs/ui@master] WikimediaUI theme: Set ButtonElement's height per default
Change 361596 merged by jenkins-bot:
[oojs/ui@master] WikimediaUI theme: Set ButtonElement's height per default