joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[4.1] Vertical tabs style is forced for nested tabs

Open Denitz opened this issue 4 years ago • 12 comments

Pull Request for Issue #31376 .

Summary of Changes

Horizontal tabs inside vertical tabs incorrectly inherit vertical CSS style.

Testing Instructions

Display horizontal tabs inside vertical tabs.

The code:

<?= HTMLHelper::_('uitab.startTabset', 'tabs1', ['active' => 'tabA']) ?>
	<?= HTMLHelper::_('uitab.addTab', 'tabs1', 'tabs11', 'tabs11') ?>
		Horizontal tab 1

		<?= HTMLHelper::_('uitab.startTabset', 'tabs2', ['active' => 'tabA', 'orientation' => 'vertical']) ?>
		<?= HTMLHelper::_('uitab.addTab', 'tabs2', 'tabs21', 'tabs21') ?>
		Horizontal &gt; Vertical tab 1

			<?= HTMLHelper::_('uitab.startTabset', 'tabs3', ['active' => 'tabA', 'orientation' => 'horizontal']) ?>
			<?= HTMLHelper::_('uitab.addTab', 'tabs3', 'tabs31', 'tabs31') ?>
			Horizontal &gt; Vertical &gt; Horizontal tab 1
			<?= HTMLHelper::_('uitab.endTab') ?>
			<?= HTMLHelper::_('uitab.addTab', 'tabs3', 'tabs32', 'tabs32') ?>
			Horizontal &gt; Vertical &gt; Horizontal tab 2
			<?= HTMLHelper::_('uitab.endTab') ?>
			<?= HTMLHelper::_('uitab.endTabset') ?>

		<?= HTMLHelper::_('uitab.endTab') ?>

		<?= HTMLHelper::_('uitab.addTab', 'tabs2', 'tabs22', 'tabs22') ?>
		Horizontal &gt; Vertical tab 2
		<?= HTMLHelper::_('uitab.endTab') ?>

		<?= HTMLHelper::_('uitab.endTabset') ?>

	<?= HTMLHelper::_('uitab.endTab') ?>

	<?= HTMLHelper::_('uitab.addTab', 'tabs1', 'tabs12', 'tabs12') ?>
		Horizontal tab 2
	<?= HTMLHelper::_('uitab.endTab') ?>

<?= HTMLHelper::_('uitab.endTabset') ?>

Actual result BEFORE applying this Pull Request

See the invalid style of horizontal tabs.

Expected result AFTER applying this Pull Request

Valid horizontal tabs style.

Documentation Changes Required

No.

Denitz avatar Nov 17 '20 07:11 Denitz

I have tested this item :white_check_mark: successfully on 88e33ce2ec32a259f47597e4718af80a9f485566

I put the test code from #31376 at the bottom of the banners list to test. Needs npm run build:css


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

ceford avatar Nov 18 '20 04:11 ceford

Before:

screen shot 2020-11-18 at 04 30 49

After:

screen shot 2020-11-18 at 04 31 24


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

ceford avatar Nov 18 '20 04:11 ceford

I have tested this item :white_check_mark: successfully on 88e33ce2ec32a259f47597e4718af80a9f485566


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

ghost avatar Nov 18 '20 04:11 ghost

RTC


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

Quy avatar Nov 18 '20 16:11 Quy

@Denitz Could you fix the SCSS code style errors reported here by Drone? https://ci.joomla.org/joomla/joomla-cms/37650/1/20 . It might be necessary that you change some SCSS in line 152 and after of file administrator/templates/atum/scss/vendor/joomla-custom-elements/joomla-tab.scss so you have a nesting depth of not more than 4 levels.

richard67 avatar Nov 20 '20 19:11 richard67

Back to pending since it fails SCSS code style tests in Drone.


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

richard67 avatar Nov 20 '20 19:11 richard67

@richard67 SCSS changed.

Denitz avatar Nov 23 '20 08:11 Denitz

Restarted drone

infograf768 avatar Nov 23 '20 08:11 infograf768

@Denitz could you resolve the conflicts in your branch, please?

chmst avatar Jan 31 '22 15:01 chmst

@chmst Done.

Denitz avatar Feb 02 '22 14:02 Denitz

This pull request has automatically rebased to 4.2-dev.

HLeithner avatar Jun 27 '22 13:06 HLeithner

This pull requests has been automatically converted to the PSR-12 coding standard.

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

@roland-d do you consider it a bug fix for 4.2? Major changes in the style file but I don't see it breaking anything. If insure, I will include it into 4.3.

obuisard avatar Oct 11 '22 16:10 obuisard

@obuisard We can include this in 4.2.x once there are 2 testers again because it had a number of changes since then. @ceford Would you mind testing this one again please?

roland-d avatar Oct 15 '22 17:10 roland-d

I have tested this item :white_check_mark: successfully on d0ea92ccaa495f61b07fbaa9658fed1ec78278b5


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

obuisard avatar Oct 15 '22 19:10 obuisard

image With the markup provided for testing.

obuisard avatar Oct 15 '22 19:10 obuisard

Not sure about this. I get a different vertical tab style from @obuisard but the same as I got last time. This is on a new install of ‎4.3.0-rc2-dev with test sample data. I would prefer the style shown by @obuisard.screen shot 2022-10-16 at 06 59 26


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

ceford avatar Oct 16 '22 06:10 ceford

@ceford Do not look so much at the style because it may differ depending on the template you are using. The importance is to get a horizontal thick border on the selected tab when the tabulation is horizontal and a vertical thick border on the selected tab when the tabulation is vertical.

obuisard avatar Oct 16 '22 16:10 obuisard

@ceford The answer by Olivier, does that mean your test is OK? If so, could you please mark it. Thank you.

roland-d avatar Oct 19 '22 06:10 roland-d

I have tested this item :white_check_mark: successfully on d0ea92ccaa495f61b07fbaa9658fed1ec78278b5

I put the test code in a front end form and there the appearance is as depicted by @obuisard - so it is OK. I guess the backend appearance is a separate issue.


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

ceford avatar Oct 19 '22 08:10 ceford

RTC


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

alikon avatar Oct 19 '22 08:10 alikon

Thank you

roland-d avatar Oct 19 '22 20:10 roland-d