Created
November 11, 2020 20:47
-
-
Save joedolson/cf7b5a4bc24040fe7fca94ce1251db08 to your computer and use it in GitHub Desktop.
WordPress Accessibility Pattern Library - Table Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="wp-list-table widefat fixed striped table-view-excerpt pages"> | |
<thead> | |
<tr> | |
<td id='cb' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-1">Select All</label><input id="cb-select-all-1" type="checkbox" /></td><th scope="col" id='title' class='manage-column column-title column-primary sortable desc'><a href="https://make.wordpress.org/accessibility/wp-admin/edit.php?post_type=handbook&orderby=title&order=asc"><span>Title</span><span class="sorting-indicator"></span></a></th><th scope="col" id='author' class='manage-column column-author'>Author</th><th scope="col" id='date' class='manage-column column-date sortable asc'><a href="https://make.wordpress.org/accessibility/wp-admin/edit.php?post_type=handbook&orderby=date&order=desc"><span>Date</span><span class="sorting-indicator"></span></a></th> | |
</tr> | |
</thead> | |
<tbody id="the-list"> | |
... | |
</tbody> | |
<tfoot> | |
<tr> | |
<td class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-2">Select All</label><input id="cb-select-all-2" type="checkbox" /></td><th scope="col" class='manage-column column-title column-primary sortable desc'><a href="https://make.wordpress.org/accessibility/wp-admin/edit.php?post_type=handbook&orderby=title&order=asc"><span>Title</span><span class="sorting-indicator"></span></a></th><th scope="col" class='manage-column column-author'>Author</th><th scope="col" class='manage-column column-date sortable asc'><a href="https://make.wordpress.org/accessibility/wp-admin/edit.php?post_type=handbook&orderby=date&order=desc"><span>Date</span><span class="sorting-indicator"></span></a></th> | |
</tr> | |
</tfoot> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment