Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #88 from kawshar/issue-56
Browse files Browse the repository at this point in the history
Issue 56, searchtools toggle ordering direction button's accessibility.
  • Loading branch information
marcodings authored Jan 2, 2020
2 parents b7eef56 + 9c1cdb4 commit 58e0bc5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/joomla/searchtools/default/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@
</div>
</div>
<?php if($fieldName === 'list_fullordering') : ?>
<button type="button" class="btn btn-link js-stools-order-toggler hasTooltip" title="<?php echo !empty($orderDirn) && strtoupper($orderDirn) === 'ASC' ? Text::_('JGLOBAL_ORDER_DESCENDING_DIRN') : Text::_('JGLOBAL_ORDER_ASCENDING_DIRN'); ?>"><i class="duotone icon-lg <?php echo !empty($orderDirn) && strtoupper($orderDirn) === 'ASC' ? 'icon-descending' : 'icon-ascending'; ?>"></i></button>
<button type="button"
class="btn btn-link js-stools-order-toggler hasTooltip"
title="<?php echo !empty($orderDirn) && strtoupper($orderDirn) === 'ASC' ? Text::_('JGLOBAL_ORDER_DESCENDING_DIRN') : Text::_('JGLOBAL_ORDER_ASCENDING_DIRN'); ?>"
aria-label="<?php echo !empty($orderDirn) && strtoupper($orderDirn) === 'ASC' ? Text::_('JGLOBAL_ORDER_DESCENDING_DIRN') : Text::_('JGLOBAL_ORDER_ASCENDING_DIRN'); ?>"
>
<span class="duotone icon-lg <?php echo !empty($orderDirn) && strtoupper($orderDirn) === 'ASC' ? 'icon-descending' : 'icon-ascending'; ?>"></span>
</button>
<?php endif; ?>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 58e0bc5

Please sign in to comment.