Skip to content

Commit ac94d4e

Browse files
committed
Slight table tweaks
1 parent 3ab8923 commit ac94d4e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/docs/design-patterns.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ <h2>Tables</h2>
870870
<h3>Plain table</h3>
871871
<p class="information">Simple table (without <code>&lt;thead&gt;</code>, <code>&lt;tfoot&gt;</code> tags)</p>
872872

873-
<div class="tabular-data" tabindex="0" aria-label="Food list" itemscope itemtype="https://schema.org/Table">
873+
<div class="tabular-data" tabindex="0" aria-labelledby="table1-caption" itemscope itemtype="https://schema.org/Table">
874+
<h4 id="table1-caption" class="accessibility" itemprop="about">This describes the table as microdata if no caption is used.</h4>
874875
<table>
875876
<tbody>
876877
<tr>
@@ -900,9 +901,9 @@ <h3>Plain table</h3>
900901
<h3>Full Table</h3>
901902
<p class="information">Full-feautured table with <code>scope</code>, <code>rowspan</code> <code>colspan</code> attributes, and <code>&lt;caption&gt;</code>, <code>&lt;colgroup&gt;</code>, <code>&lt;thead&gt;</code>, <code>&lt;tfoot&gt;</code>, <code>&lt;tbody&gt;</code> tags included</p>
902903

903-
<div class="tabular-data" tabindex="0" aria-labelledby="table-caption" itemscope itemtype="https://schema.org/Table">
904+
<div class="tabular-data" tabindex="0" aria-labelledby="table2-caption" itemscope itemtype="https://schema.org/Table">
904905
<table>
905-
<caption id="table-caption">This is a table caption</caption>
906+
<caption id="table2-caption" itemprop="about">This is a table caption</caption>
906907
<colgroup>
907908
<col class="t25">
908909
<col class="t25">

src/templates/forms/misc/language_table.txp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ try {
99
}
1010

1111
echo <<<EOHTML
12-
<div class="tabular-data" tabindex="0" aria-label="Language list" itemscope itemtype="https://schema.org/Table">
12+
<div class="tabular-data" tabindex="0" aria-labelledby="table1-caption" itemscope itemtype="https://schema.org/Table">
13+
<h4 id="table1-caption" class="accessibility" itemprop="about">List current of languages translation for Textpattern CMS</h4>
1314
<table>
1415
<colgroup>
1516
<col class="t30">

0 commit comments

Comments
 (0)