Skip to content

Commit

Permalink
alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Sep 6, 2018
1 parent ba915fa commit 66ec5ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions administrator/templates/atum/scss/template-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ body {
}

.dropdown-menu-right {
right: auto;
left: 0;

&::after {
right: auto;
left: .9rem;
Expand Down
8 changes: 6 additions & 2 deletions layouts/joomla/toolbar/dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
defined('JPATH_BASE') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Factory;

$direction = Factory::getLanguage()->isRtl() ? 'dropdown-menu-right' : '';


/**
* @var string $id
Expand All @@ -33,13 +37,13 @@

<?php if ($toggleSplit ?? true): ?>
<button type="button" class="<?php echo $caretClass ?? ''; ?> dropdown-toggle dropdown-toggle-split"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<?php endif; ?>

<?php if (trim($dropdownItems) !== ''): ?>
<div class="dropdown-menu dropdown-menu-right">
<div class="dropdown-menu <?php echo $direction; ?>">
<?php echo $dropdownItems; ?>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 66ec5ee

Please sign in to comment.