Skip to content

Commit

Permalink
Accessibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nie7321 committed Oct 23, 2023
1 parent bffd071 commit e220673
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/Cards1.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const cards = parse(cardCsv, {
});
---
<SiteLayout title="Card Database" wide=true>
<h1 class="sr-only">Cards</h1>
<div class="overflow-x-auto">
<table id="cards" class="text-sm">
<thead>
Expand Down Expand Up @@ -44,4 +45,7 @@ const cards = parse(cardCsv, {
});

addColumnFilter(dt);

document.querySelector('.datatable-search .datatable-input').setAttribute('aria-label', 'Search');
document.querySelector('nav.datatable-pagination').setAttribute('aria-label', 'Card Page');
</script>

0 comments on commit e220673

Please sign in to comment.