? ? Pending

User tests: Successful: Unsuccessful:

avatar tassosm
tassosm
3 Jul 2020

Summary of Changes

Although the Tabs CSS file includes styles for displaying tabs in a vertical orientation the UiTab class doesn't take into account the orientation parameter. The PR makes startTabSet() method read that property too.

Testing Instructions

Try to create vertical tabs using the code below:

use Joomla\CMS\HTML\HTMLHelper;

echo HTMLHelper::_('uitab.startTabSet', 'sections', ['orientation' => 'vertical']);

echo HTMLHelper::_('uitab.addTab', 'sections', 'tab1', 'Tab 1');
echo 'content of tab1';
echo HTMLHelper::_('uitab.endTab');

echo HTMLHelper::_('uitab.addTab', 'sections', 'tab2', 'Tab 2');
echo 'content of tab2';
echo HTMLHelper::_('uitab.endTab');

echo HTMLHelper::_('uitab.addTab', 'sections', 'tab3', 'Tab 3');
echo 'content of tab3';
echo HTMLHelper::_('uitab.endTab');

echo HTMLHelper::_('uitab.endTabSet');

Actual result BEFORE applying this Pull Request

The orientation param is ignored and the tabs are displayed horizontally

Peek 2020-07-03 11-28

Expected result AFTER applying this Pull Request

With this PR tabs are correctly displayed vertically

fixed

Keep in mind that the styling doesn't look really nice to me but I am willing to check it with another PR.

avatar tassosm tassosm - open - 3 Jul 2020
avatar tassosm tassosm - change - 3 Jul 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2020
Category Libraries
avatar ceford ceford - test_item - 3 Jul 2020 - Tested successfully
avatar ceford
ceford - comment - 3 Jul 2020

I have tested this item successfully on ae37d8b

I found a convenient place to test this was in the Privacy -> Capabilities page.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29927.

avatar alikon alikon - test_item - 4 Jul 2020 - Tested successfully
avatar alikon
alikon - comment - 4 Jul 2020

I have tested this item successfully on ae37d8b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29927.

avatar alikon alikon - change - 4 Jul 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 4 Jul 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29927.

avatar infograf768 infograf768 - change - 4 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-04 16:14:47
Closed_By infograf768
Labels Added: ? ?
avatar infograf768 infograf768 - close - 4 Jul 2020
avatar infograf768 infograf768 - merge - 4 Jul 2020
avatar infograf768
infograf768 - comment - 4 Jul 2020

Tks.

Add a Comment

Login with GitHub to post a comment