-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Short description of the issue
I found a couple of issues with the tab that's displayed on the side of an open panel.
I'm following the documentation in /wire/modules/Jquery/JqueryUI/panel.js
For testing purposes I'm adding a link to ProcessPageEdit that opens a panel showing the page list:
$wire->addHookAfter('ProcessPageEdit::buildFormContent', function(HookEvent $event) {
$wrapper = $event->return;
$wrapper->appendMarkup = "<a class='pw-panel' href='/processwire/page/?modal=panel&pw_panel=1'>Open panel</a>";
});
If I add a data-tab-text='My panel'
attribute the text is not visible in the tab:
If I add a data-tab-icon='list-ul'
attribute the tab icon is unexpectedly rotated 90 degrees:
To get the rotation corrected it seems I have to also add a data-tab-text
attribute but it's not clear why that should be needed if I'm choosing to display an icon rather than text.
Also, is there supposed to be a way to not show a tab on the panel? It would be good if there was because the tab seems like it's unnecessary in many cases but data-tab-text=''
and data-tab-icon=''
just results in a default tab being shown, again with the icon rotated incorrectly.
Setup/Environment
- ProcessWire version: 3.0.231