https://bugzilla.wikimedia.org/show_bug.cgi?id=65377
Bug ID: 65377
Summary: VisualEditor: Need a way to add a non-functional label
to the top of a popupToolGroup (within the popup)
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Web browser: ---
Mobile Platform: ---
See design mock-up at
https://trello.com/c/xCo6uLAZ/9-5-references-dropdown-from-toolbar-styling.
Right now, I can give a popupToolGroup a label by using the 'label' param in a
toolbarGroup definition:
{
'label': 'Cite',
'type': 'list',
'icon': 'reference',
'title': OO.ui.deferMsg( 'visualeditor-toolbar-cite-label' ),
'include': [ { 'group': 'cite' } ]
}
However, this puts the label above the popup (in the popupToolGroup-handle)
rather than within the popup itself (as needed by the design linked to above).
I can imagine two different ways of providing this functionality:
1. Add a new type of param for toolbarGroups called something like
'inner-label'
2. Allow creating non-functional labels from the on-wiki group definition, for
example:
[
{ "label": "cite" },
{ "name": "web", "icon": "ref-cite-web", "template": "Cite web" },
{ "name": "book", "icon": "ref-cite-book", "template": "Cite book" },
{ "name": "news", "icon": "ref-cite-news", "template": "Cite news" },
{ "name": "journal", "icon": "ref-cite-journal", "template": "Cite journal"
}
]
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l