Page MenuHomePhabricator

Hide "more" button label on small screens (template dialog)
Closed, ResolvedPublic3 Estimated Story Points

Description

  • Remove button label on small screens for the more button (turn into an icon-only quiet mobile OOUI button)
  • Masking gradient behind the button should shrink to match the smaller button size
  • Ensure that ARIA label remains
  • Align right edge of button when focused with the right edge of the text field
  • Mobile/small screens only: make entire description included in the button's clickable area (both for expanding and collapsing)

Screen Shot 2022-05-10 at 10.44.20.png (234×780 px, 22 KB)

Screen Shot 2022-05-10 at 10.44.54.png (448×1 px, 48 KB)

Event Timeline

Change 791352 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Improve collapsible descriptions for smaller screens

https://gerrit.wikimedia.org/r/791352

awight renamed this task from Make more button icon only for small screens (template dialog) to Hide "more" button label on small screens (template dialog).May 12 2022, 12:25 PM
WMDE-Fisch set the point value for this task to 3.May 12 2022, 12:27 PM

Test wiki created on Patch demo by Andrew Kostka (WMDE) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/2e6cef484f/w/

Change 791617 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Fix non-collapsible parameter descriptions on smaller screens

https://gerrit.wikimedia.org/r/791617

Change 792146 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Extract MWExpandableContentElement.onButtonClick method

https://gerrit.wikimedia.org/r/792146

Change 792146 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Extract MWExpandableContentElement.onButtonClick method

https://gerrit.wikimedia.org/r/792146

Change 791352 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Improve collapsible descriptions for smaller screens

https://gerrit.wikimedia.org/r/791352

I was testing this out on beta (looking amazing!!) and I think I found a bug introduced by this change (it's only happening if I'm editing on both mobile and on beta). The expand/collapse button is showing on descriptions that are too short and when clicked there is nothing to expand. See examples below (both "Notable works" and "Signature")

Screen Shot 2022-05-24 at 09.13.12.png (792×1 px, 150 KB)
Screen Shot 2022-05-24 at 09.13.18.png (866×1 px, 146 KB)

Change 800722 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[mediawiki/extensions/VisualEditor@master] Make collapsible descriptions more responsive

https://gerrit.wikimedia.org/r/800722

Test wiki on Patch demo by Andrew Kostka (WMDE) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/2e6cef484f/w/

Change 800722 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Make collapsible descriptions more responsive

https://gerrit.wikimedia.org/r/800722