Currently on https://en.m.wikipedia.org/wiki/Special:EditWatchlist the active (blue) items has a hover and click behavior, which is confusing.
In OOjs UI the ButtonSelectWidget active item carries a pointer as cursor, which it shouldn't.
Currently on https://en.m.wikipedia.org/wiki/Special:EditWatchlist the active (blue) items has a hover and click behavior, which is confusing.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T113560 Standardize MediaWiki components (tracking) | |||
Resolved | Volker_E | T77916 ButtonSelectWidget active item should not have hover or click effects. |
But sometimes the user should be able to reload the active item, e.g. to refresh it. Mobile adds class mw-ui-progressive to the active button to make it blue, which encourages the user to click it, and it does reload. If the button clicking should do nothing then that's a bug in the mobile implementation.
If clicking a button should do nothing then it should have attribute disabled, but that tends to mute the button (except it has no effect in a mw-ui-button-group).
Mobile also adds class active to the active button but that seems to have no styling associated with it; mediawiki.ui doesn't have any styling for active or selected.
I think we're conflating the "active" button in a button group with its progressive/constructive/destructive semantics, and with whether it's disabled or not. Button groups in the style guide seems too bare-bones.
ToggleButtonWidget shouldn't be changed as well, as ToggleButtonWidget has a click function when in -active state.
Change 249295 had a related patch set uploaded (by VolkerE):
Allow ButtonGroupWidget/SelectWidget buttons to spill on to new lines
Change 249295 abandoned by Jdlrobson:
Allow ButtonGroupWidget/SelectWidget buttons to spill on to new lines
Reason:
I have no plans to work on this anymore. Feel free to reassign author to someone else.
Change 272663 had a related patch set uploaded (by VolkerE):
ButtonOptionWidget active state should carry default cursor
Change 272681 had a related patch set uploaded (by VolkerE):
mediawiki.ui: Button group active buttons unchanged on user interaction
Change 272681 merged by jenkins-bot:
mediawiki.ui: Button group active buttons unchanged on user interaction
is-on seems like a far too generic classname to me. Should be something like mw-ui-button-active.
Change 272663 merged by jenkins-bot:
ButtonOptionWidget active state should carry default cursor