Bug 39998: Add presentation role to the layout tables.
This patch improves the accessibility of the OPAC. It's a trivial patch to help assistive technologies understand the different tables. Test plan: Enable the system preferences: OPACShelfBrowser, OPACPrivacy, ShowComponentRecords. 1- On the Koha OPAC, Research a record. 2- Inspect the result page HTML and notice that there is a role='presentation' in the table tag. 3- Choose a record with a Component section and inspect the HTML, there should be a role='presentation' in the table tag. 4- Open the Browse shelf. Inspect the HTML and notice that there is a role='presentation' in the table tag of the browse shelf. 5- Log in to a patron account, go to the Your Summary page, and choose Privacy in the menu. 6- Inspect the HTML of the page and notice that there is a role='presentation' in the table tag of the 'Immediate deletion'. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitbc9dfb4b8e) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commit428d787526) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1c6e77f8e1
commit
ed337bfa08
|
|
@ -10,7 +10,7 @@
|
|||
<a style="font-size: 75%;" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]" class="close_shelf" >Close shelf browser <span class="sr-only">(Hides shelf browser)</span></a>
|
||||
</h5>
|
||||
|
||||
<table class="table">
|
||||
<table class="table" role="presentation ">
|
||||
<tr>
|
||||
<td class="nav-cell" rowspan="2">
|
||||
[% IF shelfbrowser_prev_item %]
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@
|
|||
[% IF ComponentParts && ComponentParts.size %]
|
||||
[% WRAPPER tab_panel tabname="components" %]
|
||||
<div class="content_set">
|
||||
<table>
|
||||
<table role="presentation">
|
||||
[% FOR PART IN ComponentParts %]
|
||||
<tr>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@
|
|||
<input type="hidden" name="op" value="cud-delete_record" />
|
||||
<input type="hidden" name="all" value="1" />
|
||||
</form>
|
||||
<table class="table table-bordered table-condensed table-striped">
|
||||
<table class="table table-bordered table-condensed table-striped" role="presentation">
|
||||
<tr>
|
||||
<td colspan=7>Immediately delete my checkout history. This action cannot be undone.</td>
|
||||
<td colspan=1>
|
||||
|
|
|
|||
|
|
@ -215,8 +215,8 @@
|
|||
</div> <!-- /#floating -->
|
||||
|
||||
<!-- TABLE RESULTS START -->
|
||||
<table class="table table-striped">
|
||||
<caption class="sr-only">Results</caption>
|
||||
<table class="table table-striped" role="presentation">
|
||||
<span class="sr-only">Results</span>
|
||||
|
||||
<!-- Actual Search Results -->
|
||||
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue