Skip to content

Commit

Permalink
listing selects accessibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed May 7, 2024
1 parent 7c4d0a5 commit 99c5b9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions templates/catalog/_partials/per-page.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
$defaultPerPage * 4
]}

<select data-action="search-select" class="form-select">
<select
data-action="search-select"
class="form-select"
aria-label="{l s='Results per page' d='Shop.Falcon.Global'}"
>
{foreach $productPerPageArray as $perPage}
<option
{if $currentPerPage == $perPage}selected{/if}
Expand All @@ -47,7 +51,7 @@
{else}
data-href="{$currentUrlFormatted}{if $otherParamsExists}&{else}?{/if}resultsPerPage={$perPage}"
{/if}>
{l s='Per page:' d='Shop.Theme.Catalog'} {$perPage}
{l s='Per page:' d='Shop.Falcon.Global'} {$perPage}
</option>
{/foreach}
</select>
Expand Down
6 changes: 5 additions & 1 deletion templates/catalog/_partials/sort-orders.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*}

<select data-action="search-select" class="form-select">
<select
data-action="search-select"
class="form-select"
aria-label="{l s='Sort order' d='Shop.Falcon.Global'}"
>
{foreach from=$listing.sort_orders item=sort_order}
<option
data-href="{$sort_order.url}"
Expand Down

0 comments on commit 99c5b9d

Please sign in to comment.