? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
12 Jun 2020

Fixes #29311.

Summary of Changes

Removes margin between Bootstrap accordion slides.

Testing Instructions

Edit a module in frontend.

Expected result

Looks OK.

Actual result

Gap between slides and first slide is missing the bottom border:

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 12 Jun 2020
avatar SharkyKZ SharkyKZ - change - 12 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2020
Category Libraries
avatar SharkyKZ SharkyKZ - change - 12 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2020
Category Libraries Front End com_config Libraries
avatar infograf768
infograf768 - comment - 12 Jun 2020

I have a B/C problem here with com_localise after this patch.
I do use the below code and display a table in the slide

<?php echo HTMLHelper::_('bootstrap.startAccordion', 'slide-translations', array('active' => '')); ?>
<?php echo HTMLHelper::_('bootstrap.addSlide', 'slide-translations', Text::_('COM_LOCALISE_SLIDER_TRANSLATIONS_LEGEND'), 'legend'); ?>

Then I have another accordeon + slide.
I lose the mb-2 margin

.mb-2, .my-2 {
    margin-bottom: 0.5rem !important;
}

Before this PR

Screen Shot 2020-06-12 at 10 22 29

After this PR
Screen Shot 2020-06-12 at 10 22 56

avatar infograf768
infograf768 - comment - 12 Jun 2020

I can evidently solve it by adding the mb-2 class to the div enclosing this template but I wonder if this PR is the correct solution.

		<div class="col-md-12 mb-2">
			<?php echo $this->loadTemplate('legend'); ?>
		</div>
avatar ceford ceford - test_item - 12 Jun 2020 - Tested successfully
avatar ceford
ceford - comment - 12 Jun 2020

I have tested this item successfully on 878e3bc

First bottom margin present - but no gaps between unopened tabs, is that intended.


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

avatar infograf768 infograf768 - test_item - 12 Jun 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 12 Jun 2020

I have tested this item successfully on 878e3bc

I guess will just have to modify my component.


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

avatar infograf768 infograf768 - change - 12 Jun 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 12 Jun 2020

rtc


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

avatar richard67 richard67 - change - 12 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-12 11:00:55
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 12 Jun 2020
avatar richard67 richard67 - merge - 12 Jun 2020
avatar richard67
richard67 - comment - 12 Jun 2020

Thanks all!

avatar SharkyKZ
SharkyKZ - comment - 12 Jun 2020

@ceford Yes, that's expected.

@infograf768 you can also pass mb-2 class to HTMLHelper::_('bootstrap.addSlide').

This PR is fine in that it fixes the default styling. Before patch, this looked fine in Atum because it has custom CSS but not in Cassiopeia or in any stock Bootstrap template.

Add a Comment

Login with GitHub to post a comment